English, Article edition: UNIQUE: Stata module to report number of unique values in variable(s) Tony Brady

User activity

Share to:
 
Bookmark: http://trove.nla.gov.au/version/175623
Physical Description
  • code
Language
  • English

Edition details

Title
  • UNIQUE: Stata module to report number of unique values in variable(s)
Author
  • Tony Brady
Physical Description
  • code
Notes
  • The command unique without a by reports the number of unique values for the varlist. With a by it does the same, but also creates a new variable (_Unique by default but can be named in the gen option). This new variable contains the number of unique values of the varlist for each level of the by variable. The new variable is coded missing except for the first record in each group defined by the levels of the by variable. The command is useful for exploring data where the records refer to more than one level, for example longitudinal data where each record refers to a visit by a subject.
  • RePEc:boc:bocode:s354201
Language
  • English
Contributed by
OAIster

Get this edition

  • Set up My libraries

    How do I set up "My libraries"?

    In order to set up a list of libraries that you have access to, you must first login or sign up. Then set up a personal list of libraries from your profile page by clicking on your user name at the top right of any screen.

  • All (1)
  • Unknown (1)
None of your libraries hold this item.
None of your libraries hold this item.
None of your libraries hold this item.
None of your libraries hold this item.
None of your libraries hold this item.
None of your libraries hold this item.
None of your libraries hold this item.
None of your libraries hold this item.

User activity


e.g. test cricket, Perth (WA), "Parkes, Henry"

Separate different tags with a comma. To include a comma in your tag, surround the tag with double quotes.

Be the first to add a tag for this edition

Be the first to add this to a list

Comments and reviews

What are comments? Add a comment

No user comments or reviews for this version

Add a comment