Learn R Programming

piecewiseSEM (version 1.2.1)

get.formula.list: Generates list of formula from a list of models.

Description

A helper function for sem.missing.paths that retrieves a formula list from a list of structured equations.

Usage

get.formula.list(modelList, add.vars)

Arguments

modelList

a list of regressions representing the structural equation model.

add.vars

a vector of additional variables whose independence claims should be evaluated, but which do not appear in the model list.

Value

Returns a list of objects of class formula.