element.indices: Get the score element indices

Description Usage Arguments Value Author(s)

View source: R/louis.R

Description

The complete data score equations consist of elements such as nij-di*lambda ij, zi-pi, and o_ij-Ni*e_ij. Hence the score can be written as A-cB, where A is a vector of nij,zi,oij and B, di,1,Ni, and c, lambda ij,pi,eij

Usage

1
2
  element.indices(suff.stats, rate.matrix, emission.matrix,
    init.dist)

Arguments

suff.stats

table with coding all of the sufficient statistics

rate.matrix

the rate matrix

emission.matrix

the emission matrix

init.dist

vector with the initial distribution

Value

list with

l_a

row index of suff.stats corresponding to A

l_b

row index of suff.stats corresponding to B–for 1, this index is set to 0

c

vector of constants

Author(s)

Jane Lange


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