Learn R Programming

stremo (version 0.2)

lvnfy: Set the ground to start analysing a structural equation model.

Description

This function uses lavaan to build an internal representation of a model to be fit.

Usage

lvnfy(model, data, n = NULL, ...)

Arguments

model
Model syntax, as in lavaan.
data
Either a covariance matrix or raw data.
n
The number of observations, only used if data is a covariance matrix.
...
Other arguments to be passed to sem.

Value

A lavaanified model.

Examples

Run this code
data(albert)
tmp <- lvnfy(albert.model, data = albert.litho.cov, n = 107)
tmp

Run the code above in your browser using DataLab