dsdive.impute.sample_n: Sample number of transitions between observations for a CTMC

Description Usage Arguments

View source: R/dsdive.impute.sample_n.R

Description

Uses properties of homogeneous Continuous time Markov Chains (CTMCs) to sample the number of transitions between known endpoints and times.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
dsdive.impute.sample_n(
  d0,
  df,
  s0,
  sf,
  t0,
  tf,
  t.stages,
  rate.unif,
  P.raw,
  P.tx,
  n.bins,
  max.tx
)

Arguments

d0

index of depth bin in which the CTMC segment starts

df

index of depth bin in which the CTMC segment ends

s0

dive stage in which the CTMC begins

sf

dive estage in which the CTMC ends

t0

time at which d0 is observed

tf

time at which df is observed

t.stages

stage transition times for the dive

rate.unif

uniformization rate, for standardizing transition rates between states

P.raw

list of continuous time probability transition matrices, and components.

P.tx

list of discrete time probability transition matrices

n.bins

number of rows in the depths matrix

max.tx

maximum number of transitions between observations that will be allowed during imputation


jmhewitt/dsdive documentation built on May 29, 2020, 5:18 p.m.