Advertisement
Guest User

Untitled

a guest
Jul 11th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 0.94 KB | None | 0 0
  1.  
  2. ##Loading and sorting out data set.
  3.  options(warn=-1)
  4.   rm(model.half) # remove existing models.
  5.   rm(model.full)
  6.   rm(model.null)
  7.   options(warn=0)
  8.  
  9.   # Create procedural names
  10.   anovaname = substr(datnames[i], 1, nchar(datnames[i])-4)
  11.  
  12.   # Remove L&R designations. Format all to factors.
  13.   data=read.csv(datfiles[i])
  14.   data$ROI =as.character(data$ROI)
  15.   data$ROI = str_remove(data$ROI,"L_|R_|R|L")
  16.  
  17.   data$ROI =as.factor(data$ROI)
  18.   data$Condition = as.factor(data$Condition)
  19.   data$Part = as.factor(data$Part)
  20.   data$hem = as.factor(data$hem)
  21.  
  22.  
  23. ## This works. Same LMM set up, using LMER. Don't run it, it takes like 10 hours.
  24.  
  25. model.full <- lmer(Values ~ Condition*ROI*hem + (Condition+ROI+hem|Part),data, REML=FALSE)
  26.  
  27. ## However this does not. It used to, but no longer. I was hoping to use this for  post hoc tests etc.
  28.  
  29. ges.peak <- aov_4(Values ~ Condition*ROI*hem + (Condition+ROI+hem|Part), data, fun_aggregate = mean)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement