Description Usage Arguments Details Value Examples
initializes the marginal transition probabilities with or without parental constraint.
1 | init.p.trans(K, trans.const = TRUE)
|
K |
number of latent classes, |
trans.const |
a logical variable indicating if the parental constraint is used. Parental constraint means that the class of a subject can be only one
of his parents classes. Default is |
All non-zero transition probabilities are set to be equal. The parental constraint indicator determines which transition probabilities are non-zero.
the function returns p.trans an array of dimension K times K+1 times K+1: p.trans[c_i,c_1,c_2] is the probability that
the subject i is assigned to class c_i and his parents to classes c_1 and c_2.
1 2 | init.p.trans(3) #parental constraint is TRUE,
init.p.trans(3,trans.const=FALSE) #parental constraint is FALSE.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.