Description Usage Arguments Details Examples
Remove variables with no link and simplify the class of the lvm object
1 2 3 4 5 6 7 8 9 10 11 |
x |
|
... |
additional arguments to lower level functions |
rm.exo |
should the exogenous variables with no links be removed from the object ? |
rm.endo |
should the endogenous variables with no links be removed from the object ? |
rm.latent |
should the latent variables with no links be removed from the object ? |
rm.lp |
should the linear predictors with no links be removed from the object ? |
simplify.reduce |
should the class |
simplify |
should the class of the object be simplified ? Overwrite the simplify.x arguments. |
simplify means remove the class "lavaReduce"
if no linear predictor is in the object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | m <- lvm()
m <- regression(m, x=paste0("x",1:5),y="y1")
m <- regression(m, x=paste0("x",1:5),y="y2")
covariance(m) <- y1~y2
cancel(m) <- y1 ~ x1
cancel(m) <- y2 ~ x1
clean(m)
m <- lvm(y1 ~ eta + x1, y2 ~ eta, y3 ~ eta + x2)
latent(m) <- ~eta
clean(m)
m
cancel(m) <- y1 ~ eta
cancel(m) <- y2 ~ eta
cancel(m) <- y3 ~ eta
clean(m)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.