mnLogLik2: Approximate multinomial log likelihood for stage frequency...

Description Usage Arguments Value

View source: R/functions.r

Description

Approximate multinomial log likelihood for stage frequency data with fixed number of individuals.

Usage

1
mnLogLik2(data, rStageDur, mortRate = NULL, ...)

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. If NULL (the default), mortality rates are assumed to be zero.

...

Further arguments passed to rStageDur.

Value

The approximate (stochastic) log-likelihood value.


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