楼主: SPSSCHEN
3746 2

[讨论]GLM Repeated with Categorical Covariates [推广有奖]

  • 0关注
  • 0粉丝

博士生

22%

还不是VIP/贵宾

-

TA的文库  其他...

Voxco NewOccidental

Case Study NewOccidental

NoSQL NewOccidental

威望
0
论坛币
946 个
通用积分
0.6700
学术水平
7 点
热心指数
2 点
信用等级
0 点
经验
2052 点
帖子
306
精华
0
在线时间
42 小时
注册时间
2005-9-25
最后登录
2022-10-25

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币

I want to us ethnicity (4 levels) as a covariate in an ANCOVA procedure. I think the code is correct, but since I've never worked with a set, as covariate, I'm a little concerned. The Syntax Guide had little to say on this issue (see GLM: Repeated Measures, 726-734).

COMPUTE Ethnic1 = 0. COMPUTE Ethnic2 = 0. COMPUTE Ethnic3 = 0. DO IF (Ethnic EQ 1). - COMPUTE Ethnic1 = 1. ELSE IF (Ethnic EQ 2). - COMPUTE Ethnic2 = 1. ELSE IF (Ethnic EQ 3). - COMPUTE Ethnic3 = 1. END IF. GLM pretest posttest BY group WITH ethnic1 ethnic2 ethnic3 /WSFACTOR = time 2 /METHOD = SSTYPE(3) /EMMEANS = TABLES(group*time) WITH(ethnic1=MEAN ethnic2=MEAN ethnic3=MEAN) /CRITERIA = ALPHA(.05) /WSDESIGN = time /DESIGN = ethnic1 ethnic2 ethnic3 group . Any suggestions will be most welcome.

Stephen Salbod, Pace University, NYC

二维码

扫码加我 拉你入群

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

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

关键词:Categorical covariates covariate Variates Repeated 讨论 Repeated Categorical GLM covariates

沙发
SPSSCHEN 发表于 2005-9-25 04:39:00 |只看作者 |坛友微信交流群

Covariates are supposed to be interval-level variables (they might be dummies), whereas categorical variables with several categories should be treated as factors, not as covariates. However, if you convert your ethnicity variable into a set of three dummies representing the four categories, you may use the dummies as covariates. Not strictly kosher but acceptable.

Hector

使用道具

藤椅
SPSSCHEN 发表于 2005-9-25 04:41:00 |只看作者 |坛友微信交流群

Hi Stephen,

There may be a problem with your code. If you have any missing data, you've just relegated it to ethnic4 (the drop out category). When you run through your COMPUTEs for ethnic 1 to 3, teh missing data along with all you other cases got a value of 0. Then in the If statement the valid data for that ethnicity got a value of 1 on that pass, but you never correct the missing data. You might want to try this after the COMPUTE statements:

IF MISSING(ethnic) ethnic1 = $SYSMIS. IF MISSING(ethnic) ethnic2 = $SYSMIS. IF MISSING(ethnic) ethnic3 = $SYSMIS. IF MISSING(ethnic) ethnic4 = $SYSMIS.

Good luck.

Lisa T. Stickney Ph.D. Student The Fox School of Business and Management Temple University

使用道具

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

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-28 15:50