50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


VGAM (version 1.1-6)

maxwell: Maxwell Regression Family Function

Description

Estimating the parameter of the Maxwell distribution by maximum likelihood estimation.

Usage

maxwell(link = "loglink", zero = NULL, parallel = FALSE,
        type.fitted = c("mean", "percentiles", "Qlink"),
        percentiles = 50)

Arguments

link

Parameter link function applied to a, which is called the parameter rate. See Links for more choices and information; a log link is the default because the parameter is positive. More information is at CommonVGAMffArguments.

zero, parallel
type.fitted, percentiles

See CommonVGAMffArguments for information. Using "Qlink" is for quantile-links in VGAMextra.

Value

An object of class "vglmff" (see vglmff-class). The object is used by modelling functions such as vglm, rrvglm and vgam.

Details

The Maxwell distribution, which is used in the area of thermodynamics, has a probability density function that can be written f(y;a)=2/πa3/2y2exp(0.5ay2) for y>0 and a>0. The mean of Y is 8/(aπ) (returned as the fitted values), and its variance is (3π8)/(πa).

References

von Seggern, D. H. (1993). CRC Standard Curves and Surfaces, Boca Raton, FL, USA: CRC Press.

See Also

Maxwell, rayleigh, poisson.points.

Examples

Run this code
# NOT RUN {
mdata <- data.frame(y = rmaxwell(1000, rate = exp(2)))
fit <- vglm(y ~ 1, maxwell, data = mdata, trace = TRUE, crit = "coef")
coef(fit, matrix = TRUE)
Coef(fit)
# }

Run the code above in your browser using DataLab