as.fmx.mixEM | R Documentation |
mixEM
Objects to fmx ClassTo convert mixEM
objects (from package mixtools)
to fmx class.
Currently only the returned value of normalmixEM and gammamixEM are supported
## S3 method for class 'mixEM'
as.fmx(x, data = x[["x"]], ...)
x |
|
data |
numeric vector |
... |
.. |
Function as.fmx.mixEM()
returns an fmx object.
plot.mixEM not plot gammamixEM returns, as of 2022-09-19.
library(mixtools)
(wait = as.fmx(normalmixEM(faithful$waiting, k = 2)))
hist.default(faithful$waiting, freq = FALSE)
curve(dfmx(x, dist = wait), xlim = range(faithful$waiting), add = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.