fitted {flexmix} | R Documentation |
Extract fitted values for each component from a flexmix object.
## S4 method for signature 'flexmix': fitted(object, drop=TRUE, ...)
object |
an object of class "flexmix" or
"FLXrefit" |
drop |
logical, if TRUE then the function tries to
simplify the return object by combining lists of length 1 into
matrices. |
... |
currently not used |
Friedrich Leisch
data(NPreg) ex1 <- flexmix(yn~x+I(x^2), data=NPreg, k=2) matplot(NPreg$x, fitted(ex1), pch=16, type="p") points(NPreg$x, NPreg$yn)