fmx {fmx} | R Documentation |
Create fmx Object for Finite Mixture Distribution
Description
To create fmx object for finite mixture distribution.
Usage
fmx(distname, w = 1, ...)
Arguments
distname |
character scalar |
w |
(optional) numeric vector.
Does not need to sum up to 1; |
... |
mixture distribution parameters.
See function dGH for the names and default values of Tukey |
Value
Function fmx returns an fmx object.
Examples
(e1 = fmx('norm', mean = c(0,3), sd = c(1,1.3), w = c(1, 1)))
isS4(e1) # TRUE
slotNames(e1)
(e2 = fmx('GH', A = c(0,3), g = c(.2, .3), h = c(.2, .1), w = c(2, 3)))
(e3 = fmx('GH', A = 0, g = .2, h = .2)) # one-component Tukey
[Package fmx version 0.1.2 Index]