lvm | R Documentation |
Function that constructs a new latent variable model object
lvm(x = NULL, ..., latent = NULL, messages = lava.options()$messages)
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. |
... |
Additional arguments to be passed to the low level functions |
latent |
(optional) Latent variables |
messages |
Controls what messages are printed (0: none) |
Returns an object of class lvm
.
Klaus K. Holst
regression
, covariance
,
intercept
, ...
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.