全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
10402 1
2013-12-07
RTRTRT
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2013-12-7 13:23:18
Examples

    * summary
    sysuse auto, clear
    logout, save(myfile) excel replace: sum


    * summary, MANUALLY clean it
    sysuse auto, clear
    logout, clear: sum
    drop t2 t5 t6
    logout, save(myfile) excel replace


    * summary, detail
    sysuse auto, clear
    logout, save(mystuff) excel word replace: sum, detail


    * 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


    * table, combined it with -fix- method
    sysuse auto, clear
    logout, save(mystuff) excel fix replace: table trunk rep78, c(n mpg mean mpg sd mpg median mpg) stubwidth(25)


    * table, MANUALLY clean it after using -fix- or -fix(1)-
    sysuse auto, clear
    caplog using mystuff.txt, replace: table trunk rep78 , c(n mpg mean mpg sd mpg median mpg)
    logout, use(mystuff.txt) fix(1) replace clear
    drop in 1/2
    logout, save(mystuff.txt) excel fix(1) replace clear


    * regress
    sysuse auto, clear
    logout, save(myfile) excel dec(3) replace: reg price mpg rep78 headroom


    * tabstat
    sysuse auto, clear
    logout, save(mytable) excel replace: tabstat price mpg rep78, stats( max p1 mean)
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群