View source: R/interpolate_mmhp_latent.R
interpolate_mmhp_latent | R Documentation |
Interpolate latent process of MMHP
interpolate_mmhp_latent(params, events, zt)
params |
parameters of the MMHP, an MMHP object |
events |
events (not including 0, but assumes start at 0) |
zt |
inferred latent state of events |
list of the states of the Markov process (z.hat), including initial state and the times of the transitions between these times (x.hat).
Q <- matrix(c(-0.4, 0.4, 0.2, -0.2), ncol = 2, byrow = TRUE) mmhp_obj <- pp_mmhp(Q, delta = c(1 / 3, 2 / 3), lambda0 = 0.9, lambda1 = 1.1, alpha = 0.8, beta = 1.2 ) ppdiag:::interpolate_mmhp_latent( params = mmhp_obj, events = c(1, 2, 3, 5), zt = c(2, 1, 1, 2) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.