formula.msel: Formulas of msel model.

View source: R/formula.R

formula.mselR Documentation

Formulas of msel model.

Description

Provides formulas associated with the object of class 'msel'.

Usage

## S3 method for class 'msel'
formula(x, ..., type = "formula", eq = NULL)

Arguments

x

object of class 'msel'.

...

further arguments (currently ignored).

type

character; if type = "formula" or type = 1 then function returns formulas of the ordinal equations. If type = "formula2" or type = 2 then function returns formulas of the continuous equations. If type = "formula3" or type = 3 then function returns formula of the multinomial equation.

eq

positive integer representing the index of the equation which formula should be returned. If NULL (default) then formulas for each equation will be returned as a list which i-th element associated with i-th equation.

Value

Returns a formula or a list of formulas depending on eq value.


switchSelection documentation built on Sept. 26, 2024, 5:07 p.m.