Registro completo |
Provedor de dados: |
AgEcon
|
País: |
United States
|
Título: |
Speaking Stata: Counting groups, especially panels
|
Autores: |
Cox, Nicholas J.
|
Data: |
2011-12-27
|
Ano: |
2007
|
Palavras-chave: |
Data management
Panels
Research Methods/ Statistical Methods
|
Resumo: |
Counting panels, and more generally groups, is sometimes possible in Stata through a reduction command (e.g., collapse, contract, statsby) that produces a smaller dataset or through a tabulation command. Yet there are also many problems, especially with irregular sets of observations for varying times, that do not yield easily to this approach. This column focuses on techniques for answering such questions while maintaining the same data structure. Especially useful are the Stata commands by: and egen and indicator variables constructed for the purpose. With by: we often exploit the fact that subscripts are defined within group, not within dataset. egen functions are often used to produce group-level statistics. Tagging each group just once ensures that summaries, including counts, are of groups, not individual observations.
|
Tipo: |
Article
|
Idioma: |
Inglês
|
Identificador: |
dm0033
http://purl.umn.edu/119295
|
Relação: |
Stata Journal>Volume 7, Number 4, 4th Quarter 2007
|
Formato: |
11
|
|