sample_path_mr2: Simulate a sample path from an endpoint conditioned CTMC by...

View source: R/RcppExports.R

sample_path_mr2R Documentation

Simulate a sample path from an endpoint conditioned CTMC by modified rejection sampling.

Description

Simulate a sample path from an endpoint conditioned CTMC by modified rejection sampling.

Usage

sample_path_mr2(
  a,
  b,
  t0,
  t1,
  lng0,
  lat0,
  lng1,
  lat1,
  group,
  k,
  nbStates,
  param,
  mu,
  Hmat,
  rateparam,
  model
)

Arguments

a, b

States at the interval endpoints, provided as integers corresponding to rows of the CTMC rate matrix.

t0, t1

times of the interval endpoints

Value

matrix whose first column is the sequence of transition times bookended by interval endpoints, and whose second column is the sequence of states

Modified from sample_path_mr in ECctmc (Fintzi, 2018)


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