mnLogLik: Approximate Monte Carlo multinomial log likelihood for stage...

Description Usage Arguments Value

View source: R/functions.r

Description

Approximate Monte Carlo log likelihood for multinomial sampling with known initial number of individuals at start of development.

Usage

1
mnLogLik(data, rStageDur, mortRate, ...)

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.

...

Further arguments passed to rStageDur.

Value

The approximate (stochastic) log-likelihood value.


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