Learn R Programming

pammtools (version 0.2.3)

gg_re: Plot Normal QQ plots for random effects

Description

Plot Normal QQ plots for random effects

Usage

gg_re(x, ...)

Arguments

x

a fitted gam object as produced by gam().

...

Further arguments passed to plot.gam

See Also

tidy_re

Examples

Run this code
# NOT RUN {
data("lung", package="survival")
lung$inst <- as.factor(lung$inst) # for mgcv
ped <- lung %>% as_ped(Surv(time, status)~ph.ecog + inst, id="id")
pam <- mgcv::gam(ped_status ~ s(tend) + ph.ecog + s(inst, bs="re"),
 data=ped, family=poisson(), offset=offset)
gg_re(pam)
# }

Run the code above in your browser using DataLab