Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

FLXMCdist1

FlexMix Clustering of Univariate Distributions


Description

These are drivers for flexmix implementing model-based clustering of univariate data using different distributions for the component-specific models.

Usage

FLXMCdist1(formula = . ~ ., dist, ...)

Arguments

formula

A formula which is interpreted relative to the formula specified in the call to flexmix using update.formula. Only the left-hand side (response) of the formula is used. Default is to use the original flexmix model formula.

dist

Character string indicating the component-specific univariate distribution.

...

Arguments for the specific model drivers.

Details

Currently drivers for the following distributions are available:

  1. Lognormal ("lnorm")

  2. inverse Gaussian ("invGauss" using dinvGauss)

  3. gamma ("gamma")

  4. exponential ("exp")

  5. Weibull ("weibull")

  6. Burr ("burr" using dburr)

  7. Inverse Burr ("invburr" using dinvburr)

Value

FLXMCdist1 returns an object of class FLXMC.

Author(s)

Friedrich Leisch and Bettina Gruen

References

Tatjana Miljkovic and Bettina Gruen. Modeling loss data using mixtures of distributions. Insurance: Mathematics and Economics, 70, 387-396, 2016. doi:10.1016/j.insmatheco.2016.06.019

See Also

Examples

if (require("actuar")) {
    set.seed(123)
    y <- c(rexp(100, 10), rexp(100, 1))
    ex <- flexmix(y ~ 1, cluster = rep(1:2, each = 100), model = FLXMCdist1(dist = "exp"))    
    parameters(ex)
}

flexmix

Flexible Mixture Modeling

v2.3-17
GPL (>= 2)
Authors
Bettina Gruen [aut, cre] (<https://orcid.org/0000-0001-7265-4773>), Friedrich Leisch [aut] (<https://orcid.org/0000-0001-7278-1983>), Deepayan Sarkar [ctb] (<https://orcid.org/0000-0003-4107-1553>), Frederic Mortier [ctb], Nicolas Picard [ctb] (<https://orcid.org/0000-0001-5548-9171>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.