makedata.simple: Generate synthetic dataset for BSD process with simple rates

Description Usage Arguments Value Examples

View source: R/bsd_package.R

Description

makedata.simple creates a list of synthetic observed datasets, each with N observation intervals from the BSD process. Observation interval lengths are entries in tList. This is used in simulation studies checking inferential procedures. Simulates observations using ransim.N.true.

Usage

1
  makedata.simple(N, tList, lam, v, mu, initList)

Arguments

N

An integer specifying the number of observation intervals/realization from the simple BSD process.

tList

A list of observation interval lengths. The number of datasets returned is equal to the length of tList

lam

Per-particle birth rate

v

Per-particle shift rate

mu

Per-particle death rate

initList

A vector containing possible initial population sizes

Value

A list of matrices. Each entry in the list is in the format returned by ransim.N.true, and corresponds to equal observation times specified in the corresponding entry in tList

Examples

1
makedata.simple(30,c(.2,.4,.6),.2,.12,.15,seq(8,12))

jasonxu90/bdsem documentation built on May 18, 2019, 5:54 p.m.