Learn R Programming

semtree (version 0.9.12)

semforest: Create a SEM Forest

Description

Grows a SEM Forest from a template model and a dataset. This may take some time.

Usage

semforest(model, data, control = NULL, predictors = NULL,
                 constraints = NULL, cluster=NULL, ...)

Arguments

model

A template SEM. Same as in semtree.

data

A dataframe to create a forest from. Same as in semtree.

control

A semforest control object to set forest parameters.

predictors

An optional list of covariates. See semtree code example.

constraints

An optional list of covariates. See semtree code example.

cluster

An object of class "cluster" representing a parallel socket cluster. See package makeCluster.

Optional parameters.

Value

A semforest object.

References

Brandmaier, A.M., Prindle, J. J., McArdle, J. J., & Lindenberger, U. (2016). Theory-guided exploration with structural equation model forests. Psychological Methods, 21(4), 566--582.

Brandmaier, A.M., Oertzen, T. v., McArdle, J.J., & Lindenberger, U. (2013). Structural equation model trees. Psychological Methods, 18(1), 71--86.

See Also

semtree