hawk_lyj 发表于 2012-11-1 23:24 
ywh19860616 :可能我没说明白,我是想问:在用stata中我们常做描述和模型分析,当我们在软件中输入相关命 ...
logout
* one-way tabulation with value labels
sysuse auto, clear
logout, clear excel dta tex save(myfile) replace: tab foreign rep78
* one-way tabulation
sysuse auto, clear
caplog using mystuff.txt, replace: tabulate price [aweight=turn], summarize(headroom)
logout, use(mystuff.txt) save(mytable) clear excel tex dta replace
* two-way tabulation
sysuse auto, clear
logout, clear: tab mpg foreign
logout, save(mytable) clear excel tex dta replace