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

rmvar

Remove variables from (model) object.


Description

Generic method for removing elements of object

Usage

rmvar(x, ...) <- value

Arguments

x

Model object

...

additional arguments to lower level functions

value

Vector of variables or formula specifying which nodes to remove

Author(s)

Klaus K. Holst

See Also

cancel

Examples

m <- lvm()
addvar(m) <- ~y1+y2+x
covariance(m) <- y1~y2
regression(m) <- c(y1,y2) ~ x
### Cancel the covariance between the residuals of y1 and y2
cancel(m) <- y1~y2
### Remove y2 from the model
rmvar(m) <- ~y2

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.