hsmmfit_exp: Simulate a hidden semi-Markov series and its underlying...

Description Usage Arguments Value References

View source: R/hsmmfit_exp.R

Description

Simulate a hidden semi-Markov series and its underlying states with covariates where the latent state distributions have accelerated failure time structure whose base densities are exponential

Usage

1
2
3
hsmmfit_exp(y, M, trunc, dtrate, dtparm, prior, zeroparm, emitparm, tpmparm,
  dt_x, zeroinfl_x, emit_x, tpm_x, yceil = NULL, method = "Nelder-Mead",
  hessian = FALSE, ...)

Arguments

y

observed time series values

M

number of latent states

trunc

a vector specifying truncation at the maximum number of dwelling time in each state.

dtrate

a vector for the scale parameters in the base exponential density for the latent state durations.

dtparm

a matrix of coefficients for the accelerated failure time model in each latent state

prior

a vector of prior probabilities

zeroparm

a vector of regression coefficients for the structural zero proportion in state 1

emitparm

a matrix of regression coefficients for the Poisson regression in each state

tpmparm

a vector of coefficients for the multinomial logistic regression in the transition probabilities

dt_x

a matrix of covariates for the latent state durations

zeroinfl_x

a matrix of covariates for the zero proportion

emit_x

a matrix of covariates for the Poisson means

tpm_x

a matrix of covariates for the transition

yceil

a scalar defining the ceiling of y, above which the values will be truncated. Default to NULL.

method

method to be used for direct numeric optimization. See details in the help page for optim() function. Default to Nelder-Mead.

hessian

Logical. Should a numerically differentiated Hessian matrix be returned? Note that the hessian is for the working parameters, which are the generalized logit of prior probabilities (except for state 1), the generalized logit of the transition probability matrix(except 1st column), the logit of non-zero zero proportions, and the log of each state-dependent poisson means

...

Further arguments passed on to the optimization methods

Value

the maximum likelihood estimates of the zero-inflated hidden Markov model

References

Walter Zucchini, Iain L. MacDonald, Roland Langrock. Hidden Markov Models for Time Series: An Introduction Using R, Second Edition. Chapman & Hall/CRC


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

Related to hsmmfit_exp in ziphsmm...