| FitVerse-package | R Documentation |
FitVerse provides a unified, user-friendly interface for fitting parametric probability distributions to continuous univariate data. The package supports 52 distribution families spanning symmetric, right-skewed, heavy-tailed, bounded, and extreme-value shapes, and three estimation methods: Maximum Likelihood Estimation (MLE), Method of Moments (MOM), and L-Moments (LMOM).
Automatic best-fit selection is performed using AIC and BIC, supplemented by four goodness-of-fit tests: Kolmogorov-Smirnov (KS), Anderson-Darling (AD), Cramer-von Mises (CvM), and Chi-Squared.
Every fitted model produces a publication-quality diagnostic plot: a histogram
overlaid with the fitted density curve and the estimated PDF formula annotated
directly on the figure. Additional diagnostic panels (Q-Q, P-P, CDF, Survival,
Hazard, and Cumulative Hazard) are available via plot.fitverse().
FitVerse is designed as the data-characterisation layer of the OptiStrata ecosystem, with seamless handoff to stratifyR for optimal stratification of survey populations.
fitverse | Fit distributions to individual observations |
fitverse_grouped | Fit distributions to grouped/interval data |
fitverse_censored | Fit distributions to censored data |
fitverse_batch | Fit all columns of a data frame |
compare_dists | Return the ranked comparison table only |
fitverse_distributions | List all 52 supported distributions |
dfitverse | Density of the best-fit distribution |
pfitverse | CDF of the best-fit distribution |
qfitverse | Quantile function of the best-fit distribution |
rfitverse | Random samples from the best-fit distribution |
return_level | T-year return levels from the fitted model |
lmrd | L-moment ratio diagram |
ev_threshold | Extreme-value threshold stability plots |
bootstrap_ci | Bootstrap confidence intervals for parameters |
generate_report | Produce a self-contained HTML or PDF report |
save_plot | Save the diagnostic plot to a file |
to_json | Serialise a fitverse object to JSON |
FitVerse_datasets | Bundled CSV files for individual and grouped data |
read_grouped_csv | Read a grouped-data CSV into list format |
"fitverse" objects
print.fitverse | Concise best-fit summary |
summary.fitverse | Full diagnostic report to the console |
plot.fitverse | Diagnostic plots (density, Q-Q, P-P, CDF, etc.) |
coef.fitverse | Extract parameter estimates |
logLik.fitverse | Extract log-likelihood |
AIC.fitverse | Extract AIC |
BIC.fitverse | Extract BIC |
as.list.fitverse | Convert to a serialisation-ready list |
| Shape | Distribution | Key |
| Symmetric | Normal | normal |
| Symmetric | Logistic | logistic |
| Symmetric | Cauchy | cauchy |
| Symmetric | Laplace | laplace |
| Symmetric | Student-t (location-scale) | student_t |
| Symmetric | Truncated Normal | truncnorm |
| Asymmetric | Skew-Normal | skewnormal |
| Asymmetric | Generalised Normal | gnorm |
| Asymmetric | Asymmetric Laplace | alaplace |
| Asymmetric | Johnson SU | johnsonsu |
| Right-skewed | Gamma | gamma |
| Right-skewed | Gamma (3-parameter) | gamma3 |
| Right-skewed | Log-Normal | lognormal |
| Right-skewed | Log-Normal (3-parameter) | lognormal3 |
| Right-skewed | Exponential | exponential |
| Right-skewed | Exponentiated Exponential | expexp |
| Right-skewed | Weibull (2-parameter) | weibull |
| Right-skewed | Weibull (3-parameter) | weibull3p |
| Right-skewed | Exponentiated Weibull | expweibull |
| Right-skewed | Log-Logistic | loglogistic |
| Right-skewed | Inverse Gaussian | invgaussian |
| Right-skewed | Inverse Gamma | invgamma |
| Right-skewed | Inverse Weibull | invweibull |
| Right-skewed | Gompertz | gompertz |
| Right-skewed | Birnbaum-Saunders | birnbaum_saunders |
| Right-skewed | Rayleigh | rayleigh |
| Right-skewed | Half-Normal | halfnormal |
| Right-skewed | Lindley | lindley |
| Right-skewed | Nakagami | nakagami |
| Heavy-tailed | Pareto | pareto |
| Heavy-tailed | Burr XII | burr |
| Heavy-tailed | Lomax (Pareto Type II) | lomax |
| Heavy-tailed | Paralogistic | paralogistic |
| Heavy-tailed | Dagum | dagum |
| Heavy-tailed | GB2 (Generalised Beta II) | gb2 |
| Heavy-tailed | Normal Inverse Gaussian | nig |
| Heavy-tailed | Generalised Hyperbolic | ghyp |
| Heavy-tailed | Generalised Gamma | gengamma |
| Extreme value | Generalised Extreme Value | gev |
| Extreme value | Gumbel | gumbel |
| Extreme value | Generalised Pareto | gpd |
| Extreme value | Generalised Logistic | glo |
| Extreme value | Pearson Type III | pearson3 |
| Extreme value | Log-Pearson Type III | lpearson3 |
| Extreme value | Kappa-4 | kap4 |
| Extreme value | Wakeby | wakeby |
| Bounded | Beta | beta |
| Bounded | Uniform | uniform |
| Bounded | Triangular | triangular |
| Bounded | Right Triangular | rtriangle |
| Bounded | PERT | pert |
| Bounded | Kumaraswamy | kumaraswamy |
Karuna G. Reddy karuna.reddy@auckland.ac.nz (University of Auckland, New Zealand)
M. G. M. Khan mgm.khan@usp.ac.fj (University of the South Pacific, Fiji)
Maintainer: Karuna G. Reddy karuna.reddy@auckland.ac.nz
Hosking, J. R. M. (1990). L-moments: Analysis and estimation of distributions using linear combinations of order statistics. Journal of the Royal Statistical Society, Series B, 52(1), 105–124. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1111/j.2517-6161.1990.tb01775.x")}
Delignette-Muller, M. L. and Dutang, C. (2015). fitdistrplus: An R package for fitting distributions. Journal of Statistical Software, 64(4), 1–34. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.18637/jss.v064.i04")}
Akaike, H. (1974). A new look at the statistical model identification. IEEE Transactions on Automatic Control, 19(6), 716–723. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1109/TAC.1974.1100705")}
fitverse, fitverse_distributions,
fitverse_grouped, FitVerse_datasets,
fitdistrplus, actuar, lmomco
## Quick start: fit three distributions to simulated Gamma data
set.seed(42)
x <- rgamma(300, shape = 2, rate = 0.5)
fit <- fitverse(x,
dists = c("gamma", "lognormal", "weibull"),
method = "MLE",
xlab = "Waiting time (s)",
plot = FALSE,
verbose = FALSE)
print(fit)
## See all 52 supported distributions
fitverse_distributions()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.