黃河泉 发表于 2016-12-20 18:45 
You are welcome. 我很少这么强烈推荐一个指令的!
黄老师您好能否请教下您,用stata做面板数据的时候,输入xtdescribe命令,什么原因会造成显示T大于我实际期数呢?
 xtdescribe
   cntry:  1, 2, ..., 6                                      n =          6
   date1:  02apr2014, 03apr2014, ..., 30dec2016              T =        675
           Delta(date1) = 1 day
           Span(date1)  = 1004 periods
           (cntry*date1 uniquely identifies each observation)
Distribution of T_i:   min      5%     25%       50%       75%     95%     max
                       674     674     674       674       674     674     674
     Freq.  Percent    Cum. |  Pattern*
 ---------------------------+-------------------------------------------------------------------------------------------------------
        5     83.33   83.33 |  76758768686877858637786868758686377858677786768778675854868687776865578685876867587786868573686877864
        1     16.67  100.00 |  76758768686877858737686868758686377858677786768778675854868687776865578685876867587786868573686877864
 ---------------------------+-------------------------------------------------------------------------------------------------------
        6    100.00         |  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 -----------------------------------------------------------------------------------------------------------------------------------
 *Each column represents 10 periods.
我实际有674期,不知道为什么会显示675期