View source: R/convenience-plots.R
gg_re | R Documentation |
Plot Normal QQ plots for random effects
gg_re(x, ...)
x |
a fitted |
... |
Further arguments passed to |
tidy_re
library(pammtools)
data("patient")
ped <- patient %>%
dplyr::slice(1:100) %>%
as_ped(Surv(Survdays, PatientDied)~ ApacheIIScore + CombinedicuID, id="CombinedID")
pam <- mgcv::gam(ped_status ~ s(tend) + ApacheIIScore + s(CombinedicuID, bs="re"),
data=ped, family=poisson(), offset=offset)
gg_re(pam)
plot(pam, select = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.