Guest User

Untitled

a guest
Dec 9th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. g1rfinal = lmer(log(trmLatency) ~ WMC + order + distance + DomSide + (1 + BlockType |
  2. pno) + (1 + firstBlType | pno) + BlockType + (1 + distance | pno) + WMC:order + WMC:distance + WMC:DomSide + order:DomSide +
  3. distance:DomSide + WMC:BlockType + distance:BlockType + DomSide:BlockType +
  4. order:BlockType, data = g1Study)
  5.  
  6. g1Study = cbind(g1Study, predict = exp(predict(g1rfinal)))
  7. g1test = g1Study %>% group_by(BlockType, order) %>% summarise(avgrt = mean(predict))
  8.  
  9. ggplot() + geom_point(data = g1test, aes(x = order, y = avgrt, color = BlockType)) + geom_line(data = as.data.frame(effect("order : BlockType", g1rfinal)), aes(x = order, y =exp(fit), color = BlockType))
Add Comment
Please, Sign In to add comment