全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件
8592 3
2007-04-12

如:在一个分组调查中,分为男女两组。

这两组人都对同一个问题进行回答,比如对学校的看法:a、很好;b,好;c,一般;d,不好;e,很不好。

如何检验男女两组对该问题回答的差异性?

二维码

扫码加我 拉你入群

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

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

全部回复
2007-4-12 05:29:00

You can assign these five scores these response, higher score means better.

create a variable 'response': 1=很不好, 2=不好, 3=一般, 4=好, 5=很好

(a、很好;b,好;c,一般;d,不好;e,很不好。)

And then you use t-test to calculate the p value by gender group (male/female), if p < .05, you say the boys and girls are different. (One group is higher). If your response variable is not normally distributed, you can use nonparametric test, Wilcoxon test is the most common one.

SAS code:

proc means data=yourdata;

class gender;

var response;

run;

Proc npar1way data=yourdata wilcoxon;

class gender;

var response;

run;

***Any other way is to compare the percentage of each level, and use 卡方 chi-sqare test for 2 by 5 table (response is 5 levels) or 2 by 2 table (2 levels: one for good, one for not good). And use proc freq in SAS program.

proc freq data=yourdata;

tables gender*response/chisq;

run;

二维码

扫码加我 拉你入群

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

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

2007-4-12 09:50:00
以下是引用zzheng722在2007-4-12 5:29:00的发言:

You can assign these five scores these response, higher score means better.

create a variable 'response': 1=很不好, 2=不好, 3=一般, 4=好, 5=很好

(a、很好;b,好;c,一般;d,不好;e,很不好。)

And then you use t-test to calculate the p value by gender group (male/female), if p < .05, you say the boys and girls are different. (One group is higher). If your response variable is not normally distributed, you can use nonparametric test, Wilcoxon test is the most common one.

SAS code:

非常感谢,高手啊。

不过,用spss应该怎么做?

二维码

扫码加我 拉你入群

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

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

2013-8-25 12:57:49
关于差异性,这个P值的节点到底是0.1还是0.05啊,有些资料上说是0.1
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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