make_formula: Formula Generator

View source: R/mvnchol.R

make_formulaR 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

mvnchol_bamlss

Examples

f <- O | C | E | A | N ~ s(x1) + s(x2) | s(y) | z 
f2 <- make_formula(f)
f2

bamlss documentation built on March 19, 2024, 3:08 a.m.