Skip to contents

Apply a Bayesian regression model in parallel across each response $y$ in an outcome or mediation model. This can be helpful when we want to share information across related

Usage

brms_model(...)

Arguments

...

Keyword parameters passed to brm.

Value

model An object of class model with estimator, predictor, and sampler functions associated wtih a Bayesian regression model.

See also

glmnet_model lnm_model rf_model lm_model

Examples

exper <- demo_joy() |>
    mediation_data("PHQ", "treatment", starts_with("ASV"))
multimedia(exper, brms_model()) # call estimate() on this to fit
#> [Multimedia Analysis] 
#> Treatments: treatment 
#> Outcomes: PHQ 
#> Mediators: ASV1, ASV2, ... 
#>   
#> [Models] 
#> mediation: An unfitted lm_model(). 
#> outcome: An unfitted brms_model().