Skip to contents

Parametric bootstrap for ICC CIs

Usage

bootstrap_variance_components(model, n_boot = 200)

Arguments

model

A brmsfit object.

n_boot

Number of bootstrap replicates.

Value

A list with summary (bootstrap statistics), n_successful, and n_attempted, or NULL if insufficient replicates succeed.

Examples

if (interactive()) {
fit <- brms::brm(outcome ~ phase + (1 | case), data = simulate_scd_data())
bootstrap_variance_components(fit, n_boot = 50)
}