Learn R Programming

ziphsmm (version 2.0.6)

zipnegloglik_cov_cont: negative log likelihood function for zero-inflated Poisson hidden Markov model with covariates, where zero-inflation only happens in state 1

Description

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

Usage

zipnegloglik_cov_cont(parm, y, covariates, M, ntimes, timeindex, udiff)

Arguments

parm

working parameters

y

observed series

covariates

design matrix of covariates including the intercept

M

number of hidden states

ntimes

length of the observed series

timeindex

vector of observed time points

udiff

unique time intervals

Value

negative log likelihood