楼主: ReneeBK
1618 4

BY and WITH command in mixed model SPSS [推广有奖]

  • 1关注
  • 62粉丝

VIP

已卖:4897份资源

学术权威

14%

还不是VIP/贵宾

-

TA的文库  其他...

R资源总汇

Panel Data Analysis

Experimental Design

威望
1
论坛币
49635 个
通用积分
55.6937
学术水平
370 点
热心指数
273 点
信用等级
335 点
经验
57805 点
帖子
4005
精华
21
在线时间
582 小时
注册时间
2005-5-8
最后登录
2023-11-26

楼主
ReneeBK 发表于 2014-4-16 05:13:43 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币

I coded a variable as 0/1 (species 1 vs. species 2). I assumed that a dichotomous independent variable can be put in the SPSS mixed model as either a "factor" (two levels) ("by") or, if coded 0/1 also as a covariate (predictor) ("with") and that it would not make a difference. But I was wrong. The statistics do change when I use WITH vs. BY. What is the difference between the two and when should I use them?


  • between subject factor: species subject: 0-1
  • within subject factors: same_different (stimulus characteristic, do subjects look at their own or the other species): 0-1 stimuluscondition: 0-1 luminance stimulus: continuous variable that I want to control for (it is not of interest)
  • dependent variable: pupilsize of subject (continuous)


二维码

扫码加我 拉你入群

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

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

关键词:mixed model Command Mixed model SPSS difference command between factors either

沙发
ReneeBK 发表于 2014-4-16 05:15:18
I notice that you excluded intercept from the fixed factor effects (| NOINT). When there is no intercept in a model, the dichotomous factor is not the same as dichotomous covariate. Just look at an easier example, linear model with dichotomous predictors X1 and X2:

UNIANOVA Y WITH X1 X2
  /METHOD= SSTYPE(3)
  /INTERCEPT= EXCLUDE
  /DESIGN= X1 X2
  /PRINT= PARAM.
UNIANOVA Y BY X1 WITH X2
  /METHOD= SSTYPE(3)
  /INTERCEPT= EXCLUDE
  /DESIGN=X1 X2
  /PRINT= PARAM.
In both commands, intercept is suppressed. In the first one X1 and X2 are covariates while in the second one X1 is factor. In the presense of intercept, both would have yielded identical results because one of the 2 levels of factor X1 would come out to be redundant which will actually turn X1 into a single covariate. With intercept suppressed, though, both levels of X1 are valid dummy predictors, so you actually have two covariates in place of X1, all in all 3 predictors in the model.

藤椅
ReneeBK 发表于 2014-4-16 05:17:30
Thank you for the reply, this is helpful. I am just not sure which model is the correct model and whether I should include NOINT or not. I don't have any expectations that one species has a larger pupil-size than the other. That is not of interest. I am interested in the three-way interaction between species_subject, same_different, stimuluscondition, to see if the mean pupil size is different, but also if the slope is different.

板凳
ReneeBK 发表于 2014-4-16 05:18:06
Just to avoid the confusion that the question and the answer may create. In the script (SPSS) the 'noint' keyword is used to suppress the intercept, because: the "with int".... already defines an intercept. The variable int is the unit vector defined prior to the linear mixed call. This should have been emphasized. Without the "with int" the answerer would be completely right.

报纸
ReneeBK 发表于 2014-4-16 05:18:29
Thank you for your reply Conor. I edited my original question and emphasized the 'noint' and 'with int' statements. Does anybody else have an answer to my question about when to use the BY and WITH command and what the exact difference is between the two?

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

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