gen.Gamma: Generate t.p.m. to approximate HSMM with HMM

Description Usage Arguments Value

View source: R/gen.Gamma.R

Description

This function generates a t.p.m. of a HMM that approximates a HSMM (see Langrock and Zucchini, 2011)

Usage

1
  gen.Gamma(m, params, PDFs, CDFs)

Arguments

m

vector of length nstates indicating the number of states to be in each state aggregate (see Langrock and Zuchinni 2011).

params

A list of length ndist+1 containing matrices of starting parameter values. If nstates=2, the first element of the list must be the starting values for the dwell time distribution. If nstates>2, the first element must be the starting values for t.p.m., which must have 0's on the diagonal and rowSums=1.

PDFs

A list of PDFs for the ndist distributions.

CDFs

A list of CDFs for the ndist distributions.

Value

A vector of shifted negative binomial pdf values


benaug/move.HMM documentation built on Jan. 23, 2022, 4:29 a.m.