Description Usage Arguments Value
Runs EM using adapted forward-backward that calculates partially observed data for Rafferty method. Calculates probability of being a stayer, intiial vector, transition matrix, and classification matrix Uses the following functions: ForwardLinearRaff, BackwardLinearRaff, CalcLikelihoodMover, CalcLikelihoodStayer, CalcInitialLinRaff, CalcTransitionLin,Raff CalcClassificationLinRaff, and CalcStayerLin
1 2 3 4 5 6 7 8 9 10 11 12 13 |
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 |
lambda |
vector of length two, first value is weight given to value at time t-1, second value is weight given to value at time t-2 |
max2 |
number of values the second test can take on |
max3 |
number of values the third test can take on |
data_array |
data array of three combined tests, patternized |
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.