inst/extexamples/qdrg-coda.R

# Use a stored example having a posterior sample
# Model is based on the data in lme4::cbpp
post <- readRDS(system.file("extdata", "cbpplist", package = "emmeans"))$post.beta

rg2 <- qdrg(~ size + period, data = lme4::cbpp, mcmc = post, link = "logit")

summary(rg2, type = "response")

Try the emmeans package in your browser

Any scripts or data that you put into this service are public.

emmeans documentation built on July 3, 2024, 5:11 p.m.