Calculate moments for the fitted timedist model

Share:

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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

1
2
3
4
5
6
7
8
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)