
Analyze population variation in hierarchical models
Source:R/15.3-analysis-sensitivity.R
analyze_population_variation.RdAnalyzes the magnitude and sources of variation in hierarchical models. Decomposes total variation into between-individual and within-individual components.
Value
A named list with at minimum three elements:
- n_individuals
Integer. Number of individuals in the analysis.
- population_parameters
Named list with sub-lists
mu_p,sigma_p, andsigma_obs, each containingestimate,se,ci_lower, andci_upper.- variance_decomposition
Named list (present when total variance is positive) with
between_individual_variance,within_individual_variance,total_variance,between_individual_prop,within_individual_prop, andintraclass_correlation.
When individual outcome data are available, outcome_variation is
appended (sub-lists consumption and optionally growth,
each with variance, cv, and range). When covariate
effects are present and include_covariates = TRUE,
covariate_effects is also appended. Stops with an error if
result was not produced by the hierarchical method.