View source: R/summary_maihda.R
| summary_maihda | R Documentation |
Provides a summary of a MAIHDA model including variance partition coefficients (VPC/ICC) and stratum-specific estimates.
summary_maihda(
object,
bootstrap = FALSE,
n_boot = 1000,
conf_level = 0.95,
...
)
object |
A maihda_model object from |
bootstrap |
Logical indicating whether to compute bootstrap confidence intervals for VPC/ICC. Default is FALSE. |
n_boot |
Number of bootstrap samples if bootstrap = TRUE. Default is 1000. |
conf_level |
Confidence level for bootstrap intervals. Default is 0.95. |
... |
Additional arguments (not currently used). |
A maihda_summary object containing:
vpc |
Variance Partition Coefficient (ICC) with optional CI |
variance_components |
Data frame of variance components |
stratum_estimates |
Data frame of stratum-specific random effects with labels if available |
fixed_effects |
Fixed effects estimates |
model_summary |
Original model summary |
strata_result <- make_strata(maihda_sim_data, vars = c("gender", "race"))
model <- fit_maihda(health_outcome ~ age + (1 | stratum), data = strata_result$data)
summary_result <- summary_maihda(model)
# With bootstrap CI
# summary_boot <- summary_maihda(model, bootstrap = TRUE, n_boot = 50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.