楼主: luchunping
5488 6

[数据管理求助] 收入的quintile怎么用stata做出来 [推广有奖]

  • 1关注
  • 0粉丝

高中生

60%

还不是VIP/贵宾

-

威望
0
论坛币
103 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
521 点
帖子
22
精华
0
在线时间
32 小时
注册时间
2009-2-24
最后登录
2015-6-3

楼主
luchunping 发表于 2012-3-20 03:28:03 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
收入的quintile怎么用stata做出来
二维码

扫码加我 拉你入群

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

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

关键词:Stata Tile tata int qui 收入

沙发
hplcdadong 发表于 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

藤椅
hplcdadong 发表于 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
已有 1 人评分论坛币 学术水平 热心指数 收起 理由
SpencerMeng + 20 + 1 + 1 热心帮助其他会员

总评分: 论坛币 + 20  学术水平 + 1  热心指数 + 1   查看全部评分

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

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

报纸
hplcdadong 发表于 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.
已有 1 人评分论坛币 收起 理由
SpencerMeng + 20 精彩帖子

总评分: 论坛币 + 20   查看全部评分

地板
luchunping 发表于 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.

7
abcabc123 发表于 2015-4-12 10:51:53
学习了,还是没完全明白

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-2 06:24