View source: R/mmpp_event_state.R
mmpp_event_state | R Documentation |
Given a MMPP object and events from that MMPP, infer the most likely state of the Markov Process at each event time, along with the probability of being in the active state.
mmpp_event_state(params = list(lambda0, c, Q), events, start = 0)
params |
the parameters of the chosen MMPP |
events |
the event times |
start |
the start of observation |
probability of being in state 1 (active state) at each event, along with most likely state
Q <- matrix(c(-0.4, 0.4, 0.2, -0.2), ncol = 2, byrow = TRUE) mmpp_obj <- pp_mmpp(Q, delta = c(1 / 3, 2 / 3), lambda0 = 0.9, c = 1.1 ) ## evaluate at some fake event times ppdiag:::mmpp_event_state(params = mmpp_obj, events = c(1, 2, 3, 5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.