mnLogLikN: Approximate numerical multinomial log likelihood for stage...

Description Usage Arguments Value

View source: R/functions.r

Description

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

Usage

1
mnLogLikN(data, dStageDur, mortRate, ...)

Arguments

data

A data matrix of class sfMat.

dStageDur

A function computing stage duration densities. Should return a matrix where the firs column give the grid over which numeric integration is to be performed and the remaining columns give the density of the stage durations evaluated at the grid point. 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 numeric log-likelihood value.


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