# \donttest{
d <- data.frame(
id = c(1,1,2,2),
idOff = c(1,2,1,2),
y = c(1,2,1,3)
)
fit <- cosmic(d, id, idOff, y, iter = 300, chains = 1, cores = 1, threads = 1)
# use plan() and handlers() to run officer_summary() in parallel
# future::plan(future::multisession, workers = 4)
# progressr::handlers("cli")
off_summary <- officer_summary(fit)
outlier_report(off_summary)
# }
Run the code above in your browser using DataLab