Guest User

Untitled

a guest
Apr 23rd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. model.M <- lmer(Enjoyment ~ Stimulus + (1|P_ID), mydata)
  2. model.Y <- lmer(Flow ~ Stimulus + Enjoyment + (1|P_ID), mydata)
  3.  
  4. results = mediate(model.M, model.Y, treat='Stimulus', mediator='Enjoyment',
  5. boot=TRUE, sims=100)
  6. summary(results)
Add Comment
Please, Sign In to add comment