全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
5439 6
2012-03-20
收入的quintile怎么用stata做出来
二维码

扫码加我 拉你入群

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

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

全部回复
2012-3-20 08:25:52
Assume your variable is "income"

xtile quartile=income, nq(4)
tabstat income, by(quartile) stat(n min max)      //to check your quartile
二维码

扫码加我 拉你入群

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

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

2012-3-20 08:29:55
Sorry, for "quintile" :

xtile quintile=income, nq(5)
tabstat income, by(quintile) stat(n min max)      //to check your quintile
二维码

扫码加我 拉你入群

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

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

2012-3-20 08:40:54
hplcdadong 发表于 2012-3-20 08:29
Sorry, for "quintile" :

xtile quintile=income, nq(5)
太谢谢了,我这就去试试。还想请教您为什么做回归的时候总是要把收入做quintile来分析呢?有的还在收入和财富前加log分析呢?
二维码

扫码加我 拉你入群

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

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

2012-3-20 08:55:24
I assume that you are doing multiple linear regression. Most likely income is not in a normal distribution. Transforming it into quintile or a log transformation may make it fit well in the model (avoid the influence of its extremes and outliers), and make the results easy to explain. This is my good guess. For exact reasons, you have to check the literature.

Remember, multiple linear regression does not need each individual independent variable to be in a normal distribution. You can try "original income" in your model and check the model diagnostics yourself.
二维码

扫码加我 拉你入群

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

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

2012-3-21 10:41:31
hplcdadong 发表于 2012-3-20 08:55
I assume that you are doing multiple linear regression. Most likely income is not in a normal distri ...
you are so professional. This explanation is so wonderful. Thank you so much.

I do logistic regression, if i have other question, could I ask for you? Thanks.
二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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