constraints.theta: constraints.theta function

Description Usage Arguments Details Examples

View source: R/constraints.theta.R

Description

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.

Usage

1
constraints.theta(r, n.class)

Arguments

r

The vector of dimensions of the format (r[1],...,r[m])

n.class

The number of latent classes

Details

In addition, for identifiability issues, we require that teh latent probabilities are sorted from the largest to the smallest.

Examples

1
constraints.theta(c(2,2,2,2),2)

pzwiernik/LatentClass documentation built on May 26, 2019, 11:35 a.m.