Description Usage Arguments Value Note See Also Examples

Plot binomial data and the fitted GLMM (object of class xplode).

1 2 |

`xplode.obj` |
an object of class xplode |

`pf` |
integer: for multivariable GLMM including one factorial predictor, the level number to be plotted |

`p05line` |
logical, should be an horizontal and a vertical line added? the horizontal line is fixed at P(Y = 1) = 0.5. |

`x.range` |
a vector of length two specifying the range for model predictions |

`x.ref` |
if p05line = T, this is the position of the vertical line on the x axis |

`col` |
logical, if TRUE a different color will be used for different clusters/participants |

`x.label, y.label` |
label for the x and the y axes. If not specified, x.labels = ""Stimulus Intensity", y.label = "Predicted Response" |

a data.frame object including the intercept and slope for each participant (algebraic sum of the fixed effects and the modes of the random effects) and the color number for the plot.

The function is currently only working with GLMM including maximum three random effects (random intercept, random slope and covariance of the two)

`xplode`

objects of class `xplode.obj`

.

1 2 3 4 5 6 7 8 9 | ```
library(lme4)
data(vibro_exp3)
formula.mod <- cbind(faster, slower) ~ speed + (1 + speed| subject)
mod <- glmer(formula = formula.mod, family = binomial(link = "probit"),
data = vibro_exp3[vibro_exp3$vibration == 0,])
define.mod <- list(pf1 = list(intercept = 1, slope = 2))
xplode.mod <- xplode(model = mod, name.cont = "speed", define.pf = define.mod)
myplot <- MixPlot(xplode.mod, pf = 1, p05line = FALSE, x.ref = 8.5, x.range = c(1,16),
col = TRUE, x.label = "Stimulus Speed", y.label = "Predicted Response")
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.