init.p.trans {LCAextend} | R Documentation |
initializes the transition probabilities
Description
initializes the marginal transition probabilities with or without parental constraint.
Usage
init.p.trans(K, trans.const = TRUE)
Arguments
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 |
Details
All non-zero transition probabilities are set to be equal. The parental constraint indicator determines which transition probabilities are non-zero.
Value
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
.
Examples
init.p.trans(3) #parental constraint is TRUE,
init.p.trans(3,trans.const=FALSE) #parental constraint is FALSE.
[Package LCAextend version 1.3 Index]