kill: Remove variables from (model) object.

Description Usage Arguments Author(s) See Also Examples

Description

Generic method for removing elements of object

Usage

1
kill(x, ...) <- value

Arguments

x

Model object

value

Vector of variables or formula specifying which nodes to remove

...

additional arguments to lower level functions

Author(s)

Klaus K. Holst

See Also

cancel

Examples

1
2
3
4
5
6
7
8
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


Search within the lava package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.