grad_zipnegloglik_cov_cont: gradient for negative log likelihood function in...

Description Usage Arguments Value

View source: R/RcppExports.R

Description

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

Usage

1
grad_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

gradient for negative log likelihood


ziphsmm documentation built on May 2, 2019, 6:10 a.m.