Description Usage Arguments Value
Runs EM using adapted forward-backward that calculates partially observed data. Calculates probability of being a stayer, intiial vector, transition matrix, and classification matrix Uses the following functions: ForwardLinear, BackwardLinear, CalcLikelihoodMover, CalcLikelihoodStayer, CalcInitialLin, CalcTransitionLin, CalcClassificationLin, and CalcStayerLin
1 2 3 4 5 6 7 8 9 10 11 12 |
data_array |
data array of three combined tests, patternized |
freq_vec |
frequency vector of patterns |
epsilon |
threshold for EM convergence, stops when likelihood percentage increase is below epsilon |
time_length |
Number of observations per individual |
init |
initial probabilities |
tran |
transition probabilities |
class |
classification probabilities |
pi_0 |
probability of being stayer |
max2 |
number of values the second test can take on |
max3 |
number of values the third test can take on |
list of initial parameters, estimated parameters and likelihood initial and estimated parameter entries have same format 1) initial 2) transition 3) classification 4) stayer probability
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.