FFT.replicate: Replicate the function 'FFT.run'

Description Usage Arguments Value

View source: R/bsd_package.R

Description

This function does the same as FM.replicate, but optimizes the likelihood based on transition probabilities computed by the generating function method instead of using frequent monitoring. An example of usage is included in the vignette.

Usage

1
2
  FFT.replicate(numReps, N, tList, lam, v, mu, initList,
    initGuess, s1.seq, s2.seq)

Arguments

numReps

The number of replications

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

initGuess

A vector containing the initial guess of birth, shift, and death rates

s1.seq

A vector of complex arguments evenly spaced along the unit circle

s2.seq

A vector of complex arguments evenly spaced along the unit circle

Value

An array of optim objects in the same layout as FM.replicate


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