get_M1_M2: get_M1_M2 get the list with first and second moments of...

Description Usage Arguments Value

View source: R/louis.R

Description

get_M1_M2 get the list with first and second moments of complete data sufficient statistics for an individual, using the recursive smoothing method.

Usage

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)

Arguments

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

Value

list consisting of

M1

vector of first moments of complete data sufficient statistics

M2

matrix of second moments of complete data sufficient statistics


cthmm documentation built on May 2, 2019, 5:46 p.m.