stageFreqMC: Compute stage frequencies from simulated stage durations.

Description Usage Arguments Value

View source: R/RcppExports.R

Description

Compute stage frequencies from simulated stage durations.

Usage

1
stageFreqMC(sampleTimes, sDur, mortRate)

Arguments

sampleTimes

Vector of times at which the cohort was sampled.

sDur

A matrix of stage durations where each row corresponds to the stage duration of an individual. If there is no exit from the last stage, the stage duration of that stage can be set to Inf.

mortRate

A vector of mortality rates for each stage. Should be of length equal to the number of columns of sDur.

Value

A matrix of stage counts. Each row gives the number of individuals in each stage for a given sampling time.


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