poisLogLik: Approximate Poisson log likelihood for stage frequency data.

Description Usage Arguments Value

View source: R/functions.r

Description

Approximate log likelihood for Poisson sampling model of stage frequency data.

Usage

1
poisLogLik(data, rStageDur, mortRate, lam0, ...)

Arguments

data

A data matrix of class sfMat.

rStageDur

A function for simulating stage durations. Should return a matrix where the columns give the simulated durations for each stage (in order), and the rows represent a simulated individual. Simulated durations may be equalt to Inf if an indiviudal does not mature from a stage.

mortRate

A vector of mortality rates for each stage. Should be of the same length as the number of columns returned by rStageDur.

lam0

A vector

...

Further arguments passed to rStageDur.

Value

The approximate (stochastic) log-likelihood value.


jknape/stageFreq documentation built on May 19, 2019, 11:42 a.m.