updateState | R Documentation |
Update state sequence
updateState(
obs,
nbStates,
knownStates,
switch,
updateLim,
param,
mu,
Hmat,
updateProbs = NULL,
rateparam = NULL,
kappa = NULL,
model = NULL
)
obs |
Matrix of observations, with columns |
knownStates |
Vector of known, fixed states |
switch |
Matrix of state switches, with columns |
updateLim |
Vector of two elements: min and max length of updated interval (each an integer, corresponding to a number of observations) |
updateProbs |
Vector of probabilities of picking each number from updateLim1 to updateLim2, for the length of the update interval |
kappa |
Upper bounds of transition rate |
The update is done with the function sample_path
from the
package ECctmc (Fintzi, 2017).
List of two elements:
newSwitch: Updated matrix of transitions
newData: Updated matrix of all data (observations and transitions)
Jon Fintzi (2017). ECctmc: Simulation from Endpoint-Conditioned Continuous Time Markov Chains. R package version 0.2.4. https://CRAN.R-project.org/package=ECctmc
TODO: needs priors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.