FM.run: Main function for generating observations from...

Description Usage Arguments Details Value

View source: R/bsd_package.R

Description

This function generates observation intervals from the simple birth-shift-death process without covariates, and generates a dataset for each observation time length in tList. Next, the frequent monitoring log-likelihood is maximized using FM.optim for each dataset.

Usage

1
  FM.run(N, tList, lam, v, mu, initList, initGuess)

Arguments

initGuess

Vector of numbers, initial guess for optim

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

Details

See accompanying vignette for example usage.

Value

A list of optim objects


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