首页    期刊浏览 2024年12月05日 星期四
登录注册

文章基本信息

  • 标题:Speaking Stata: Counting groups, especially panels
  • 本地全文:下载
  • 作者:Cox, Nicholas J.
  • 期刊名称:Journal of Food Distribution Research
  • 印刷版ISSN:0047-245X
  • 出版年度:2007
  • 期号:SUPPL
  • 页码:571-581
  • 出版社:Food Distribution Research Society
  • 摘要: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.
  • 关键词:data management;panels
国家哲学社会科学文献中心版权所有