FLXMCdist1 | R Documentation |
These are drivers for flexmix
implementing model-based
clustering of univariate data using different distributions for the
component-specific models.
FLXMCdist1(formula = . ~ ., dist, ...)
formula |
A formula which is interpreted relative to the formula
specified in the call to |
dist |
Character string indicating the component-specific univariate distribution. |
... |
Arguments for the specific model drivers. |
Currently drivers for the following distributions are available:
Lognormal ("lnorm"
)
inverse Gaussian ("invGauss"
using dinvGauss
)
gamma ("gamma"
)
exponential ("exp"
)
Weibull ("weibull"
)
Burr ("burr"
using dburr
)
Inverse Burr ("invburr"
using dinvburr
)
FLXMCdist1
returns an object of class FLXMC
.
Friedrich Leisch and Bettina Gruen
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
flexmix
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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.