Description Usage Arguments Value
get_M1_M2 get the list with first and second moments of complete data sufficient statistics for an individual, using the recursive smoothing method.
1 2 3 | get_M1_M2(stat.table, time.diffs, obs.data, eigen.decomp,
exact.time.ranks, absorb.state, transition.probs,
emission.matrix, init.dist)
|
stat.table |
data frame with num rows=number of sufficient stats, and columns ni nj di zi Ni oi oj. If the statistic is n_12, then the corresponding column is (1,2,0,0,0,0,0) |
time.diffs |
observation time intervals (single subject) |
obs.data |
observed data (single subject) |
eigen.decomp |
eigen.decomp object for rate matrix (single subject) |
exact.time.ranks |
number encoding the absorption time index |
absorb.state |
one or more absorbing states in the model |
transition.probs |
transition probabilities for each time interval |
emission.matrix |
emission matrix for subject |
init.dist |
initial distribution for sujbect |
list consisting of
M1 |
vector of first moments of complete data sufficient statistics |
M2 |
matrix of second moments of complete data sufficient statistics |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.