make_formula {bamlss} | R Documentation |
Formula Generator
Description
Generate a formula for a MVN Cholesky model.
Usage
make_formula(formula, type = "basic")
Arguments
formula |
formula. |
type |
character. Type of Cholesky decomposition. |
Details
This is a helper to generate a formula for a bamlss model with k
-dimensional
multi-variate normal distribution and Cholesky decomposed variance-covariance matrix.
It is helpful if one formula should be used for means, another for all diagonal
entries of the Cholesky factor, and a third one for all lower triangular entries
of the Cholesky factor.
The left hand side has k
elements separated by |
.
The right hand side has one to three elements separated by |
specifying
the formulas used for all means, diagonal entries of the Cholesky factor and
lower triangular entries of the Cholesky factor, respectively.
See Also
Examples
f <- O | C | E | A | N ~ s(x1) + s(x2) | s(y) | z
f2 <- make_formula(f)
f2
[Package bamlss version 1.2-4 Index]