ordinal-set: Define variables as ordinal

ordinal<-R Documentation

Define variables as ordinal

Description

Define variables as ordinal in latent variable model object

Usage

ordinal(x, ...) <- value

Arguments

x

Object

...

additional arguments to lower level functions

value

variable (formula or character vector)

Examples

if (requireNamespace("mets")) {
m <- lvm(y + z ~ x + 1*u[0], latent=~u)
ordinal(m, K=3) <- ~y+z
d <- sim(m, 100, seed=1)
e <- estimate(m, d)
}


kkholst/lava documentation built on Feb. 22, 2024, 4:07 p.m.