Worm plot ggplot version, 2 covariates
wormplot2d_gg(
m = NULL,
residuals = NULL,
age = NA,
x2 = NA,
name.x2,
n.inter.age = 1,
n.inter.x2 = 1,
y.limits = c(-1, 1)
)
ggplot object
a gamlss model
nlormalized quantile residuals
numeric vector of ages
numeric vector of second covariate
name of x2 for use in graphics
number of age intervals or cut points
number of x2 intervals or cut points
limits of the y-axis
creates a wormplot for a gamlss model or a given vector of normalized quantile residuals, either for all residuals or grouped by age intervals