楼主: Lisrelchen
1815 1

When to use "With" & When to Use"By" [推广有奖]

  • 0关注
  • 62粉丝

VIP

已卖:4194份资源

院士

67%

还不是VIP/贵宾

-

TA的文库  其他...

Bayesian NewOccidental

Spatial Data Analysis

东西方数据挖掘

威望
0
论坛币
50288 个
通用积分
83.6306
学术水平
253 点
热心指数
300 点
信用等级
208 点
经验
41518 点
帖子
3256
精华
14
在线时间
766 小时
注册时间
2006-5-4
最后登录
2022-11-6

楼主
Lisrelchen 发表于 2014-5-19 22:03:31 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
I am using a random intercept model, and I have a question regarding SPSS
syntax. I would like see how a covariate is related to the dependent
variable, however, also control for the covariate effects on the
participants in the model.

To do so, in SPSS syntax, can I enter covariates following the “BY”
function and also add covariates in the FIXED function? By using this
formula, am I controlling for these covariates or should I add the
covariates using the WITH function and exclude them from FIXED section?


MIXED depression score BY Time(IV) Suicidal ideation (control) Anxiety
(control)

  /FIXED=Time(IV) Suicidal ideation (control) Anxiety (control) | SSTYPE(3)

  /METHOD=ML

  /PRINT=G  SOLUTION

/RANDOM=INTERCEPT|SUBJECT(consumid) COVTYPE(UN)

  /SAVE=PRED RESID.

二维码

扫码加我 拉你入群

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

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

关键词:when With whe use Participants following regarding function question however

沙发
Lisrelchen 发表于 2014-5-19 22:04:02
First, if it is to be in the model at all it must be in the "Mixed" command.  In the Mixed command use of "by" and "with" depends on the scale of measurement of the predictor.  For a continuous predictor (or control)  use "with" use "by" for categorical variables.  Both with and by can be in the same line.
For example
MIXED depression score BY Time(IV) Suicidal ideation WITH Anxiety

If I understand the second half of your question correctly you also need to add the variable into the fixed effect.  Your analysis will then give the independent contributions of your IV and of the control variable to the outcome.

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

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