exposure_pooling_factor: Compute pooling factors for exposure model levels

Description Usage Arguments Details See Also

View source: R/functions_pooling.R

Description

Wrapper function for computing variance explained and pooling factor for a fit exposure model.

Usage

1
2
3
4
5
exposure_pooling_factor(
  stanfit,
  standata,
  level = c("observation", "unit", "cluster", "group", "time")
)

Arguments

stanfit

The fitted model object from sample_exposure_model.

standata

List containing model structure. Typically an standata_outcome object from create_standata_outcome.

level

String indicating which level of the model to evaluate. Possible values are "cluster", "househould", "time", and "observation".

Details

This is a wrapper around compute_pooling_metrics that extracts the necessary posterior samples from stanfit.

See Also

compute_pooling_metrics sample_exposure_model


jpkeller/bercs documentation built on March 24, 2021, 5:36 a.m.