Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

lvm

Initialize new latent variable model


Description

Function that constructs a new latent variable model object

Usage

lvm(x = NULL, ..., latent = NULL, messages = lava.options()$messages)

Arguments

x

Vector of variable names. Optional but gives control of the sequence of appearance of the variables. The argument can be given as a character vector or formula, e.g. ~y1+y2 is equivalent to c("y1","y2"). Alternatively the argument can be a formula specifying a linear model.

...

Additional arguments to be passed to the low level functions

latent

(optional) Latent variables

messages

Controls what messages are printed (0: none)

Value

Returns an object of class lvm.

Author(s)

Klaus K. Holst

See Also

Examples

m <- lvm() # Empty model
m1 <- lvm(y~x) # Simple linear regression
m2 <- lvm(~y1+y2) # Model with two independent variables (argument)
m3 <- lvm(list(c(y1,y2,y3)~u,u~x+z)) # SEM with three items

lava

Latent Variable Models

v1.6.10
GPL-3
Authors
Klaus K. Holst [aut, cre], Brice Ozenne [ctb], Thomas Gerds [ctb]
Initial release
2021-09-01

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.