Description Usage Arguments Examples
This function samples a parameter vector for a latent class model. Each row from each conditional distribution matrix is sampled from the uniform Dirichlet distribution.
1 | sample.Theta(r, k)
|
r |
A vector (r[1],...,r[m]) of integers, where m is the number of observed variables and r[i] is teh statespace of the i-th variable. |
k |
The number of latent classes fitted |
1 2 3 | r <- c(2,2,2,2)
k <- 3
sample.Theta(r,k)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.