gof_bootstrap: Goodness of Fit for Univariate Distributions with...

Description Usage Arguments Value

View source: R/gof_bootstrap.R

Description

Calculates a number of goodness of fit statatistics for a chosen univariate distribution. This function was created because published p-values for the Kolmogorov-Smirnov, Anderson-Darling and Cramer-von-Mises tests are not valid if the distribution is estimated from the data. This function uses bootstrapping to obtain the p-value based on the distribution and parameters.

Usage

1
gof_bootstrap(fit, n_sims = 50000, parallel = FALSE)

Arguments

fit

fitdistrplus object

n_sims

number of replications, defaults to 5e4 (50,000)

parallel

TRUE or FALSE option to run in parallel

Value

gof_result list with KS, AD, and CVM test statistic and p-value


jstagge/staggefuncs documentation built on May 20, 2019, 2:11 a.m.