新人求教
已按tenms列将数据分段,想对每段中数据做混合线性模型
MainResult.full<-lmer(pupil_size ~ category +emotintense+ (1+category|subjects),data = new_pre_final,REML=FALSE)
MainResult.null<-lmer(pupil_size ~ emotintense+ (1+category|subjects),data = new_pre_final,REML=FALSE)
FC<-anova(MainResult.full,MainResult.null))
然后将MainResult.full得到结果中category的estimate, std.error和anova得出的p值,卡方提取出来放在同一个数据框中。
附上数据,望路过大佬指教