English, Article edition: KEYBY: Stata module to key the dataset by a variable list Roger Newson

User activity

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

Edition details

Title
  • KEYBY: Stata module to key the dataset by a variable list
Author
  • Roger Newson
Physical Description
  • code
Notes
  • keyby sorts the dataset currently in memory by the variables in a varlist, checking that the variables in the varlist uniquely identify the observations. This makes the variables in the varlist a primary key for the dataset in memory. If the user does not specify otherwise, then keyby also reorders the variables in the varlist to the start of the variable order in the dataset, and checks that all values of these variables are nonmissing. keybygen sorts the dataset currently in memory by the variables in a varlist, preserving the existing order of observations within each by-group, and then generates a new variable, containing the sequential order of each observation within its by-group, to form a primary key with the existing variables in the varlist. keyby and keybygen can be useful if the user combines multiple datasets using merge, which may cause a dataset in memory to become unsorted.
  • data manipulation, sort, key
  • RePEc:boc:bocode:s456866
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