fmx | R Documentation |
To create fmx object for finite mixture distribution.
fmx(distname, w = 1, ...)
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 |
Function fmx()
returns an fmx object.
(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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.