Predictors with Missing Values in brms Models
Specify predictor term with missing values in brms. The function does not evaluate its arguments – it exists purely to help set up a model.
mi(x)
x |
The variable containing missings. |
For detailed documentation see help(brmsformula)
.
## Not run: data("nhanes", package = "mice") bform <- bf(bmi | mi() ~ age * mi(chl)) + bf(chl | mi() ~ age) + set_rescor(FALSE) fit <- brm(bform, data = nhanes) summary(fit) plot(conditional_effects(fit, resp = "bmi"), ask = FALSE) LOO(fit, newdata = na.omit(fit$data)) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.