interpolate_mmhp_latent: Interpolate latent process of MMHP

Description Usage Arguments Value Examples

View source: R/interpolate_mmhp_latent.R

Description

Interpolate latent process of MMHP

Usage

1
interpolate_mmhp_latent(params, events, zt)

Arguments

params

parameters of the MMHP, an MMHP object

events

events (not including 0, but assumes start at 0)

zt

inferred latent state of events

Value

list of the states of the Markov process (z.hat), including initial state and the times of the transitions between these times (x.hat).

Examples

1
2
3
4
5
6
7
8
9
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)
)

ppdiag documentation built on Aug. 12, 2021, 5:07 p.m.