Learn R Programming

VGAM (version 0.8-1)

Sinmad: The Singh-Maddala Distribution

Description

Density, distribution function, quantile function and random generation for the Singh-Maddala distribution with shape parameters a and q, and scale parameter scale.

Usage

dsinmad(x, a, scale = 1, q.arg, log = FALSE)
psinmad(q, a, scale = 1, q.arg)
qsinmad(p, a, scale = 1, q.arg)
rsinmad(n, a, scale = 1, q.arg)

Arguments

x, q
vector of quantiles.
p
vector of probabilities.
n
number of observations. If length(n) > 1, the length is taken to be the number required.
a, q.arg
shape parameters.
scale
scale parameter.
log
Logical. If log = TRUE then the logarithm of the density is returned.

Value

  • dsinmad gives the density, psinmad gives the distribution function, qsinmad gives the quantile function, and rsinmad generates random deviates.

Details

See sinmad, which is the VGAM family function for estimating the parameters by maximum likelihood estimation.

References

Kleiber, C. and Kotz, S. (2003) Statistical Size Distributions in Economics and Actuarial Sciences, Hoboken, NJ: Wiley-Interscience.

See Also

sinmad, genbetaII.

Examples

Run this code
y = rsinmad(n = 3000, 4, 6, 2)
fit = vglm(y ~ 1, sinmad(init.a = 2.1), trace = TRUE, crit = "c")
coef(fit, matrix = TRUE)
Coef(fit)

Run the code above in your browser using DataLab