as.fmx.mixEM {fmx} | 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 |
|
... |
.. |
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)