updateState: Update state sequence

View source: R/updateState.R

updateStateR Documentation

Update state sequence

Description

Update state sequence

Usage

updateState(
  obs,
  nbStates,
  knownStates,
  switch,
  updateLim,
  param,
  mu,
  Hmat,
  updateProbs = NULL,
  Q = NULL,
  rateparam = NULL,
  kappa = NULL,
  model = NULL
)

Arguments

obs

Matrix of observations, with columns x, y, time, and state

knownStates

Vector of known, fixed states

switch

Matrix of state switches, with columns time and state

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

Details

The update is done with the function sample_path from the package ECctmc (Fintzi, 2017).

Value

List of two elements:

  • newSwitch: Updated matrix of transitions

  • newData: Updated matrix of all data (observations and transitions)

References

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


dylanirion/MSctmm documentation built on Sept. 27, 2024, 3:41 a.m.