FitVerse_datasets: Sample Datasets Bundled with FitVerse

FitVerse_datasetsR Documentation

Sample Datasets Bundled with FitVerse

Description

FitVerse includes several comma-separated value (CSV) files in inst/extdata/ that can be used to explore the package's fitting functions. All files are accessed with system.file().

Individual-observation datasets (for fitverse())

annual_max_flows.csv

Annual maximum daily peak flows (m^3/s) for the Rewa River at Navolau, Fiji, covering a 75-year record (1950–2024). The data are right-skewed; Gumbel, GEV, Log-Pearson III, and Log-Normal are natural candidates.

wind_speeds.csv

Daily maximum wind gust speeds (m/s) recorded at Nadi Airport, Fiji, over 200 days (2020–2024). Weibull and Rayleigh distributions are commonly used for wind data.

failure_times.csv

Failure times (hours) from a life test of 150 aluminium electrolytic capacitors under 85 {}^\circC stress. Weibull, Gamma, Log-Normal, and Birnbaum-Saunders are typical reliability choices.

insurance_claims.csv

Residential property insurance claim amounts (in thousands of USD) from 180 claims settled by Pacific Insurance Ltd between 2018 and 2024. Log-Normal, Gamma, and Pareto distributions are common in loss modelling.

concrete.csv

Compressive strength (MPa) and mix-design variables for 1030 concrete specimens (UCI Machine Learning Repository). The Strength column is suitable for fitting; Normal, Gamma, and Weibull are plausible choices.

Grouped / interval-censored datasets (for fitverse_grouped())

rainfall_grouped.csv

Annual maximum daily rainfall (mm) at Suva, Fiji, summarised into a frequency table with columns midpoint and count (80 years of record).

failure_times_grouped.csv

Failure times for 120 electronic components given as an interval frequency table with columns lower, upper, and count.

insurance_losses_grouped.csv

Property insurance claim amounts for 250 claims given as an interval frequency table with columns lower, upper, and count.

Format

Each file is a plain-text CSV with a column-name header row. Lines beginning with # are comments describing the dataset. All numeric values use the standard decimal point.

Author(s)

Karuna G. Reddy karuna.reddy@auckland.ac.nz
M. G. M. Khan mgm.khan@usp.ac.fj

See Also

fitverse for fitting to individual observations.
fitverse_grouped for fitting to grouped / interval data.

Examples

## Annual maximum flows
path <- system.file("extdata", "annual_max_flows.csv", package = "FitVerse")
x <- read.csv(path, comment.char = "#")$peak_flow_m3s
summary(x)


fit <- fitverse(x, xlab = "Peak flow (m3/s)", plot = FALSE)
print(fit)


## Grouped rainfall data
gpath <- system.file("extdata", "rainfall_grouped.csv", package = "FitVerse")
dat   <- read_grouped_csv(gpath)

gfit  <- fitverse_grouped(midpoints = dat$midpoints, counts = dat$counts,
                          xlab = "Rainfall (mm)")
print(gfit)


FitVerse documentation built on Dec. 1, 2026, 1:07 a.m.