Skip to content

Instantly share code, notes, and snippets.

@benwhalley
Created September 21, 2018 15:44
Show Gist options
  • Save benwhalley/92e9128b82b355907121f9be32527451 to your computer and use it in GitHub Desktop.
Save benwhalley/92e9128b82b355907121f9be32527451 to your computer and use it in GitHub Desktop.
Prior <- c(set_prior("normal(0, 30)", class = "b"))
options(mc.cores=parallel::detectCores ()-1)
f.interaction <- bf(Pressure ~ Awareness *
Agency *
Resp.Alt *
VisualPrime *
BlockNo_c *
CueOrderlog_c *
MovScore
+ (1+Resp.Alt*VisualPrime*CueOrderlog_c|Participant))
f.interaction_null <- bf(Pressure ~ Awareness *
Agency *
Resp.Alt *
VisualPrime *
BlockNo_c *
CueOrderlog_c +
MovScore
+ (1+Resp.Alt*VisualPrime*CueOrderlog_c|Participant))
model.interaction <- brm(f.interaction
data=GlobalModelData.Sugg,
save_all_pars = TRUE,
prior = Prior)
model.interaction_null <- brm(f.interaction_null
data=GlobalModelData.Sugg,
save_all_pars = TRUE,
prior = Prior)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment