Learn R Programming

ziphsmm (version 2.0.6)

grad_zipnegloglik_nocov_cont: gradient for negative log likelihood function from zero-inflated Poisson hidden Markov model without covariates, where zero-inflation only happens in state 1

Description

gradient for negative log likelihood function from zero-inflated Poisson hidden Markov model without covariates, where zero-inflation only happens in state 1

Usage

grad_zipnegloglik_nocov_cont(parm, M, y, ntimes, timeindex, udiff)

Arguments

parm

working parameters

M

number of hidden states

y

observed series

ntimes

length of the observed series

timeindex

vector of observed time points

udiff

unique time intervals

Value

gradient for negative log likelihood