Learn R Programming

beezdemand (version 0.2.0)

plot_qq: Plot Random Effects Q-Q

Description

Creates Q-Q plots for random effects to assess normality assumptions.

Usage

plot_qq(object, which = NULL, ...)

# S3 method for beezdemand_hurdle plot_qq(object, which = NULL, ...)

# S3 method for beezdemand_nlme plot_qq(object, which = NULL, ...)

Value

A ggplot2 object.

Arguments

object

A fitted model object with random effects (beezdemand_hurdle or beezdemand_nlme).

which

Character vector; which random effects to plot. Default is all.

...

Additional arguments (ignored).

Examples

Run this code
# \donttest{
data(apt)
fit <- fit_demand_hurdle(apt, y_var = "y", x_var = "x", id_var = "id")
plot_qq(fit)
# }

Run the code above in your browser using DataLab