mvbrmsformula | R Documentation |

Set up a multivariate model formula for use in the brms package allowing to define (potentially non-linear) additive multilevel models for all parameters of the assumed response distributions.

mvbrmsformula(..., flist = NULL, rescor = NULL)

`...` |
Objects of class |

`flist` |
Optional list of formulas, which are treated in the
same way as formulas passed via the |

`rescor` |
Logical; Indicates if residual correlation between
the response variables should be modeled. Currently, this is only
possible in multivariate |

See `vignette("brms_multivariate")`

for a case study.

An object of class `mvbrmsformula`

, which
is essentially a `list`

containing all model formulas
as well as some additional information for multivariate models.

`brmsformula`

, `brmsformula-helpers`

bf1 <- bf(y1 ~ x + (1|g)) bf2 <- bf(y2 ~ s(z)) mvbf(bf1, bf2)

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.