as.fmx.fitdist | R Documentation |
To convert fitdist objects (from package fitdistrplus) to fmx class.
## S3 method for class 'fitdist'
as.fmx(x, ...)
x |
fitdist object |
... |
.. |
Function as.fmx.fitdist()
returns an fmx object.
library(fitdistrplus)
# ?fitdist
data(endosulfan, package = 'fitdistrplus')
ATV <- subset(endosulfan, group == 'NonArthroInvert')$ATV
log10ATV <- log10(ATV)
fln <- fitdist(log10ATV, distr = 'norm')
(fln2 <- as.fmx(fln))
hist.default(log10ATV, freq = FALSE)
curve(dfmx(x, dist = fln2), xlim = range(log10ATV), add = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.