markovchain_transition_time_estimator: Transition Time Generator for Markov-chanin Random Walk...

View source: R/ts_tools.R

markovchain_transition_time_estimatorR Documentation

Transition Time Generator for Markov-chanin Random Walk Simulation

Description

This function generates random transition time (status durations) based on the average observed transition times (given by argument histobj). MarkovChain transition time generator assumes transition times have normal distribution. This is the default time generator engine for the transition system monte-carlo simulation.

Usage

markovchain_transition_time_estimator(
  histobj,
  input,
  current_time,
  family = c("normal", "exponential", "exp", "gaussian", "norm"),
  ...
)

Arguments

histobj

object of class TransitionSystem containing history of all transitions upto the current time current_time

input

dataframe containing transitions for which a transition end time needs to be generated

current_time

POSIXct containing the current time. All transition end times will be after the specified current time.

Value

dataframe with additional column pred_duration in seconds.


genpack/promer documentation built on Jan. 26, 2025, 11:30 p.m.