mi

0th

Percentile

Predictors with Missing Values in brms Models

Predictors with Missing Values in brms Models

Usage
mi(x)
Arguments
x

The variable containing missings.

Details

For detailed documentation see help(brmsformula).

This function is almost solely useful when called in formulas passed to the brms package.

See Also

brmsformula

Aliases
  • mi
Examples
# 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(marginal_effects(fit, resp = "bmi"), ask = FALSE)
LOO(fit, newdata = na.omit(fit$data))
# }
# NOT RUN {
# }
Documentation reproduced from package brms, version 2.4.0, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.