简体   繁体   English

使用 ezanova 和 wid function 重复测量 anova

[英]Repeated measures anova with ezanova amd the wid function

So I'm trying to run a repeated measures anova.所以我正在尝试运行重复测量方差分析。 I basically have two IVs with scores from 1-7 and a dv.我基本上有两个分数从 1 到 7 的 IV 和一个 dv。 Every participant has a score in both IVs and the vd of course whitch makes them within subjects.每个参与者在 IV 中都有一个分数,并且 vd 当然使他们在科目中。 Even after consulting ?ezAnova I can't figure out what my "wid" is.即使在咨询?ezAnova之后,我也无法弄清楚我的“wid”是什么。

My code looks like this:我的代码如下所示:

ezANOVA(data=df,
    wid = 
    dv = df$scoredv,
    between = .(df$scoreIV1, df$scoreIV2))

or this:或这个:

model<- lme(df$dv ~ df$iv1 + df$iv2, random = ~1|subject/df$iv1 + df$iv2, data=df)

In this case I don't know what belongs in the subject function.在这种情况下,我不知道主题 function 属于什么。

As far as I understood wid or subject is the number of the participant but I dont have a special column for that.据我了解 wid 或 subject 是参与者的数量,但我没有专门的专栏。 Do I have to create one?我必须创建一个吗?

According to ez's docs , wid = should be the participant's univocal ID, in this case.根据ez 的文档,在这种情况下, wid =应该是参与者的唯一 ID。

It's good practice to always have one (especially for data wrangling operations or individual-level data analyses).始终拥有一个是一种很好的做法(尤其是对于数据整理操作或个人级别的数据分析)。 You can probably create one quickly just for the purpose with您可能只是为了这个目的而快速创建一个

df$id <- 1:nrow(df)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM