Description Usage Arguments Value
View source: R/gof_bootstrap.R
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.
1 | gof_bootstrap(fit, n_sims = 50000, parallel = FALSE)
|
fit |
fitdistrplus object |
n_sims |
number of replications, defaults to 5e4 (50,000) |
parallel |
TRUE or FALSE option to run in parallel |
gof_result list with KS, AD, and CVM test statistic and p-value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.