Description Usage Arguments Details Examples
View source: R/constraints.theta.R
This auxiliary function outputs for any latent class model the corresponding matrix that encodes paramameter constraints.
The output is a list A,b
, where A
is a matrix and b
is a vector such that A%*% theta >= b
is the set of the inequalities defining parameter constraints.
1 | constraints.theta(r, n.class)
|
r |
The vector of dimensions of the format |
n.class |
The number of latent classes |
In addition, for identifiability issues, we require that teh latent probabilities are sorted from the largest to the smallest.
1 | constraints.theta(c(2,2,2,2),2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.