楼主: yellowriver
19881 9

如何用stata进行男性和女性的对比 [推广有奖]

  • 0关注
  • 4粉丝

VIP

已卖:5081份资源

博士生

38%

还不是VIP/贵宾

-

威望
0
论坛币
10034 个
通用积分
22.8832
学术水平
21 点
热心指数
26 点
信用等级
19 点
经验
3133 点
帖子
164
精华
0
在线时间
170 小时
注册时间
2007-11-4
最后登录
2019-5-18

楼主
yellowriver 发表于 2010-5-18 17:01:58 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
目前有一份问卷数据,里面有大学毕业生户籍(农村/城市),性别,家庭背景,在校成绩,学校批次,毕业后的收入。

以毕业生收入为因变量y, 户籍(农村/城市),性别,家庭背景,在校成绩,学校批次等为自变量x, 随着x的不同,而建立不同的多元回归模型,发现性别(female=1, male=0)这个变量当在各个回归模型中(无论其他自变量怎么变)都是显著的(系数为负,女性收入少)。导师说想看一下把男性和女性毕业生分开来后的对比结果。

除了用 reg income gender x2 x3 x4 if gender==1
                reg income gender x2 x3 x4 if gender==0  以外,还有没有其他对比男性女性的方法?

我想到了anova,
比如 anova income gender gpa school       (这意味着控制gpa,school后看一下男性和女性在收入上的对比是否显著)

大家还有没有别的关于男性女性的对比方法? 或者在以上两个方法(reg 和anova)中有没有什么建议?

感谢!
二维码

扫码加我 拉你入群

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

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

关键词:Stata tata 如何用 Gender Income Stata 女性 男性

沙发
johnayl 发表于 2010-5-19 04:02:57
this is a standard problem that can be addressed with a "chow test" - one type of Wald test.

method 1. regress using interaction terms: interact the dummy (female==1) with each of the other explanatory variables, such as 户籍, etc.

method 2: try the "sureg" commad in STATA

by the way, it is not enough to just have two regressions one with male, the other with female.

藤椅
sungmoo 发表于 2010-5-19 07:43:17
yellowriver 发表于 2010-5-18 17:01 大家还有没有别的关于男性女性的对比方法?
问题首先是:你想比较男女的什么?

板凳
yellowriver 发表于 2010-5-19 15:06:23
It is of great help. Thanks a lot~

2# johnayl

报纸
yellowriver 发表于 2010-5-19 15:15:37
我的explanatory variables 很多:
模型为:
income = b0 + b1 edu + b2 gpa + b3 mother education + b4 family income + b5 college tiers + b7 female + b8 major_cs + b9 major_ee +e  (major_cs是cs专业,major_ee是EE专业,reference group是其他理工科专业,×本研究主要是针对研究电子和计算机类学生的收入)

由于female这一项一直都显著为负,chow test 也通过了(把female于其他所有变量做交互项,再把一堆交互项带入方程,然后做F检验,p=0,说明可以拒绝原假设,分开男女两组对比)

这下我是不是可以
reg income  edu  gpa  mother_education family income college tiers  major_cs major_ee  if female ==1
reg income  edu  gpa  mother_education family income college tiers  major_cs major_ee  if female ==0  ????

向版主求教了,谢谢!



3# sungmoo

地板
sungmoo 发表于 2010-5-19 16:21:02
还是没有看明白,你想比较什么。

你想说明男女应该分别回归?

7
yellowriver 发表于 2010-5-19 16:23:07
对的,就是想这样把男女分开做回归,模型还是用混在一起时的那个,只是把混在一起时的gender项给去掉

6# sungmoo

8
chophie 发表于 2010-5-23 13:38:55
我感觉似乎就是设成虚拟变量的,一个为1,一个为0,似乎是这么操作的e

9
wbzdwss 发表于 2010-5-23 21:50:54
为什么不用dummy?

10
xplyy 学生认证  发表于 2017-1-25 17:49:13
bysort gender :reg y x1 x2 x3

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-28 16:05