Vectors of Intermediate Factors

vec_factr(model, factr_nms, formula)

Arguments

model

flexmodel object

factr_nms

vector of names of the new intermediate factors

formula

struc-class object describing the vector of intermediate factors. See avail_for_factr for a function that will return the names of all variables that are available for use in these struc-class objects.

Value

updated flexmodel object

See also

See add_factr to add a single scalar-valued intermediate factor and vec to create a vector-valued struc object.