Description Usage Arguments Details See Also
View source: R/functions_pooling.R
Wrapper function for computing variance explained and pooling factor for a fit exposure model.
1 2 3 4 5 | exposure_pooling_factor(
stanfit,
standata,
level = c("observation", "unit", "cluster", "group", "time")
)
|
stanfit |
The fitted model object from |
standata |
List containing model structure. Typically an |
level |
String indicating which level of the model to evaluate. Possible values are "cluster", "househould", "time", and "observation". |
This is a wrapper around compute_pooling_metrics
that extracts the necessary posterior samples from stanfit
.
compute_pooling_metrics
sample_exposure_model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.