Learn R Programming

lava (version 1.8.0)

subset.lvm: Extract subset of latent variable model

Description

Extract measurement models or user-specified subset of model

Usage

# S3 method for lvm
subset(x, vars, ...)

Value

A lvm-object.

Arguments

x

lvm-object.

vars

Character vector or formula specifying variables to include in subset.

...

Additional arguments to be passed to the low level functions

Author

Klaus K. Holst

Examples

Run this code

m <- lvm(c(y1,y2)~x1+x2)
subset(m,~y1+x1)

Run the code above in your browser using DataLab