nlstimedist (version 1.1.4)

tdMoments: Calculate moments for the fitted timedist model

Description

Individual functions are provided as well as a wrapper to calculate the moments for your fitted model.

Usage

tdMoments(r, c, t, ...)

tdMean(r, c, t, upper = t * 10, ...)

tdVariance(r, c, t, upper = t * 10, ...)

tdSkew(r, c, t, upper = t * 10, ...)

tdKurtosis(r, c, t, upper = t * 10, alternative = FALSE, ...)

tdEntropy(r, c, t, upper = t * 10, ...)

Arguments

r, c, t

Parameters of the Franco distribution

...

Additional arguments to be passed to integrate

upper

The upper limit of integration. Defaults to t * 10. Can be infinite for all moment functions except for entropy.

alternative

An alternative calculation method.

Value

A single value, or in the case of tdMoments, a data.frame of values.

Examples

Run this code
# NOT RUN {
tdMoments(r = 0.1, c = 0.5, t = 120)

tdMean(r = 0.1, c = 0.5, t = 120)
tdVariance(r = 0.1, c = 0.5, t = 120)
tdSkew(r = 0.1, c = 0.5, t = 120)
tdKurtosis(r = 0.1, c = 0.5, t = 120)
tdKurtosis(r = 0.1, c = 0.5, t = 120, alternative = TRUE)
tdEntropy(r = 0.1, c = 0.5, t = 120)
# }

Run the code above in your browser using DataLab