Learn R Programming

SCGLR (version 2.0.3)

multivariateFormula: Formula construction

Description

Helper function for building multivariate scglr formula.

NOTE: Interactions involving factors are not allowed for now. For interactions between two quantitative variables, use I(x*y) as usual.

Usage

multivariateFormula(namesY, namesX, namesAX = NULL)

Arguments

namesY

a vector of character containing the names of the dependent variables.

namesX

a vector of character containing the names of the covariates (X) involved in the components.

namesAX

a vector of character containing the names of the additional covariates.

Value

an object of class Formula.