请问一下大家:关于Stata中有关tsset的问题
以下是我在stata里面编辑时间序列,进行tsset的结果。
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
. clear
. edit
(3 vars, 783 obs pasted into editor)
. encode date, generate(mydate)
. format mydate %tw
. describe
Contains data
obs: 783
vars: 4
size: 18,009 (98.3% of memory free)
-------------------------------------------------------------------------------
storage display value
variable name type format label variable label
-------------------------------------------------------------------------------
date str11 %11s Date
hi1index int %8.0g HI1 Index
hsiindex int %8.0g HSI Index
mydate long %tw mydate Date
-------------------------------------------------------------------------------
Sorted by:
Note: dataset has changed since last saved
. tsset mydate
time variable: mydate, 1960w2 to 1975w4
. tsset hsiindex
repeated time values in sample
r(451);
. tsset hi1index
repeated time values in sample
r(451);
. roblpr hsiindex hi1index
time variable not set, use -tsset varname ...-
r(111);
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
问题是对日期进行tsset应该算是完成了,但是为什么tsset hsiindex和tsset hi1index的时候还是会出现错误提示?
望高手指教,急……………………………………………………………………
先谢过了