Description Usage Arguments Details References See Also
View source: R/functions_pooling.R
Computes a form of R2 and Pooling Factor for a level of a hierarchical model
1 2 3 4 5 | compute_pooling_metrics(theta, epsilon)
prop_var_explained(theta, epsilon)
pooling_factor(epsilon)
|
theta |
Matrix of the 'outcome' values for the level. Rows represent samples from the posterior distribution and columns represent units of the level. |
epsilon |
Matrix of the 'error' values for the level, in the same format as |
This computes generalized versions of R^2 and pooling factor for levels of a hierarchical model, as described by Gelman and Pardoe (2006).
Gelman, A and Pardoe, I. (2006). Bayesian Measures of Explained Variance and Pooling in Multilevel (Hierarchical) Models. Technometrics, 48, 241-251.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.