计量经济学导论第五版第一章上机作业.(精选)
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
过程
*describetive statistc*
tabstat prate mrate totpart,stat(max min mean p50 sd n)
结果
stats | prate mrate totpart
---------+------------------------------
max | 100 4.91 58811
min | 3 .01 50
mean | 87.36291 .7315124 1354.231
p50 | 95.7 .46 276
sd | 16.71654 .7795393 4629.265
N | 1534 1534 1534
过程
summarize 全部的加总
summarize prate mrate 两个变量
summarize sole prate,detail
结果
summarize
Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------
prate | 1534 87.36291 16.71654 3 100
mrate | 1534 .7315124 .7795393 .01 4.91 totpart | 1534 1354.231 4629.265 50 58811
totelg | 1534 1628.535 5370.719 51 70429 age | 1534 13.18123 9.171114 4 51 -------------+--------------------------------------------------------
totemp | 1534 3568.495 11217.94 58 144387
sole | 1534 .4876141 .5000096 0 1 ltotemp | 1534 6.686034 1.453375 4.060443 11.88025 summarize prate mrate
Variable | Obs Mean Std. Dev. Min Max -------------+--------------------------------------------------------
prate | 1534 87.36291 16.71654 3 100
mrate | 1534 .7315124 .7795393 .01 4.91 summarize sole prate,detail
= 1 if 401k is firm's sole plan
-------------------------------------------------------------
Percentiles Smallest
1% 0 0
5% 0 0
10% 0 0 Obs 1534
25% 0 0 Sum of Wgt. 1534
50% 0 Mean .4876141
Largest Std. Dev. .5000096 75% 1 1
90% 1 1 Variance .2500096 95% 1 1 Skewness .0495589 99% 1 1 Kurtosis 1.002456
participation rate, percent
-------------------------------------------------------------
Percentiles Smallest
1% 31.4 3
5% 53.8 8.8
10% 62.7 14.9 Obs 1534 25% 78 17.4 Sum of Wgt. 1534 50% 95.7 Mean 87.36291
Largest Std. Dev. 16.71654 75% 100 100
90% 100 100 Variance 279.4426 95% 100 100 Skewness -1.519626 99% 100 100 Kurtosis 5.258359 .
end of do-file
过程
*cdf*
tabulate prate
结果
累积
participati |
on rate, |
percent | Freq. Percent Cum.
------------+-----------------------------------
3 | 1 0.07 0.07
8.8 | 1 0.07 0.13
14.9 | 1 0.07 0.20
17.4 | 1 0.07 0.26
19.3 | 1 0.07 0.33
20.1 | 1 0.07 0.39
20.6 | 1 0.07 0.46
21 | 1 0.07 0.52
21.3 | 1 0.07 0.59
22.1 | 1 0.07 0.65
25.1 | 1 0.07 0.72
26.1 | 1 0.07 0.78
28.6 | 1 0.07 0.85
29 | 1 0.07 0.91
30.5 | 1 0.07 0.98
31.4 | 1 0.07 1.04