dWeibSD: Compute Weibull stage duration densities.

Description Usage Arguments Value Examples

View source: R/functions.r

Description

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

Usage

1
dWeibSD(shape, scale, nGrid, tMax)

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.

nGrid

The number of grid points to use.

tMax

The maximum time point in the grid (i.e. the right endpoint).

Value

A matrix of stage duration probabilities where the first column gives the grid and the remaining columns give the stage duration probabilities.

Examples

1
2
## Compute Weibull stage duration probabilities over a grid of 20 points.
dWeibSD(shape = c(3,1,2), scale = c(3,10,5), nGrid = 20, tMax = 15)

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