rWeibSD: Simulate Weibull distributed stage durations.

Description Usage Arguments Value Examples

View source: R/functions.r

Description

The function is intended to be used in the calculation of Monte Carlo likelihoods.

Usage

1
rWeibSD(shape, scale, N)

Arguments

shape

A vector of length equal to one minus the number of stages giving the shape of the stage durations for all but the last stage.

scale

A vector of length equal to one minus the number of stages giving the scale of the stage durations for all but the last stage.

N

The number of stage durations (individuals) to simulate.

Value

A matrix of stage durations where each row gives tha stage durations for one individual.

Examples

1
2
## Simulate Weibull stage durations for ten individuals.
rWeibSD(shape = c(3,1,2), scale = c(3,10,5), N = 10)

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