Description Usage Arguments Value Examples

Compute model weights for `brmsfit`

objects via stacking
or pseudo-BMA weighting. For more details, see
`loo::loo_model_weights`

.

1 2 | ```
## S3 method for class 'brmsfit'
loo_model_weights(x, ..., model_names = NULL)
``` |

`x` |
A |

`...` |
More |

`model_names` |
If |

A named vector of model weights.

1 2 3 4 5 6 7 8 9 10 | ```
## Not run:
# model with population-level effects only
fit1 <- brm(rating ~ treat + period + carry,
data = inhaler, family = "gaussian")
# model with an additional varying intercept for subjects
fit2 <- brm(rating ~ treat + period + carry + (1|subject),
data = inhaler, family = "gaussian")
loo_model_weights(fit1, fit2)
## End(Not run)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.