ordinal<- | R Documentation |
Define variables as ordinal in latent variable model object
ordinal(x, ...) <- value
x |
Object |
... |
additional arguments to lower level functions |
value |
variable (formula or character vector) |
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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.