For my repeated measures analysis using lme
function I could omit not-available (na
) data with the command: na.action=na.omit
.
anova_lme_loc<-lme(data=rm1, fixed=Nmin~location*date, random=~1|subject,
na.action=na.omit)
However, when I try to do the same using the ezANOVA function I got the following notification:
anova_ez_loc=ezANOVA(data=rm1, dv=Nmin, wid=subject, within=date,
between=location, na.action=na.omit)
Error in ezANOVA(data = rm1, dv = Nmin, wid = subject, within = date, : unused argument(s) (na.action = na.omit)
how can I omit my na data in ezANOVA
? - solved using:
rm1_na <- na.omit(rm1)
but now I get the following error:
anova_ez_loc=ezANOVA(data=rm1_na, dv=Nmin, wid=subject, within=date, between=location)
Warning: Converting "subject" to factor for ANOVA.
Warning: Data is unbalanced (unequal N per group). Make sure you specified a well-considered value for the type argument to ezANOVA().
Error in ezANOVA_main(data = data, dv = dv, wid = wid, within = within, : One or more cells is missing data. Try using ezDesign() to check your data.