plotRE {actuaRE} | R Documentation |
Visualizing the random effect estimates using ggplot2
Description
Using this function, you can create plots of the random effect estimates from fitted random effects models. To make
the plots, we rely on the ggplot2
package.
Usage
plotRE(
obj,
levelRE = c("all", "first", "second"),
colour = "black",
plot = TRUE
)
Arguments
obj |
an object of type |
levelRE |
indicates which hierarchical level has to be used. |
colour |
colour for |
plot |
logical indicating if the |
Value
a list with ggplot
objects.
Examples
fitHGLM <- hierCredGLM(Y ~ area + gender + (1 | VehicleType / VehicleBody), dataCar, weights = w)
plotRE(fitHGLM)
[Package actuaRE version 0.1.5 Index]