谢谢连老师,不过遇到了下面的问题,请连老师指点,谢谢。
1 ttable 2
this is version 11.0 of Stata; it cannot run version 12.0 programs
2. ttab
跑了help file里面example命令
webuse byssin
ttab pop, by(smokes) estout(c(b(fmt(2) star)) mlab(,none) collab(,none))
显示__000002 estimation results do not have e(b) and e(V)
3. ttestable
跑了example的命令,显示如下结果
. sysuse auto
(1978 Automobile Data)
. ttesttable price rep78, f(%6.1f) ref(1 2)
Cross-table of differences among groups with t-Test
1 2
------------------------------------------
1 0 1403.1
2 -1403.1 0
3 -1864.7 -461.6
4 -1507.0 -103.9
5 -1348.5 54.6
------------------------------------------
Note: Differences defined as column-line
------------------------------------------
按照我的数据 测了一个简单的
ttesttable bd_indw T if year==2001, f(%6.1f) ref(1 2)
结果first sample has no observations