multi.sanctions.bust.full.ag <- glmer(allbuster ~ lageutradeshare100 + lnlaggdpp + lagtradeopenP + colonial + lagtradesharePT + lnlaggdpt + duration + lndist + nobust + nobustsq + nobustcb + (1 | partnercode) + (1 | caseid),
data=sanctions.data.new.scaled, family=binomial(link="logit"),
nAGQ=1,control=glmerControl(optimizer="nlminbwrap",
optCtrl=list(maxfun=2e5)))
I am working on a model (see the code above), and I have been using the predictInterval function to calculate the predicted probability and prediction intervals. I've gotten the function to work, but I am a bit confused about the "which" option:
plotdf_intraeu <- predictInterval(multi.sanctions.bust.full.ag, newdata = newData, type = "probability",
stat = "mean", n.sims = 10000, level = 0.90, which = "all", seed = 234)
plotdf_intraeu <- cbind(plotdf_intraeu, newData)
I've read the documentation and the vignette, but I am a little confused as to the which="all" option. I am not sure what the difference is between the four available options: full, fixed, random, or all. Is there a logic to which option I should use?
Could anyone provide a bit more of an explanation?