• Adding continuous distribution testing functions Kolmogorov-Smirnov, Anderson-Darling, and Cramer-Von Mises

  • S3 methods have now been added for distfit objects

  • Code reformatting and cleanup

fitur on CRAN

Continuous Distribution GOF Tests

library(fitur)
## Warning: replacing previous import 'vctrs::data_frame' by 'tibble::data_frame'
## when loading 'dplyr'
x <- rgamma(100, 1, 1)
fit <- fit_univariate(x, 'gamma')
ks_test(fit, x)
## 
## 	One-sample Kolmogorov-Smirnov test
## 
## data:  x
## D = 0.043386, p-value = 0.9918
## alternative hypothesis: two-sided
ad_test(fit, x)
## 
## 	Anderson-Darling test of goodness-of-fit
## 	Null hypothesis: distribution 'distfun[[2]]'
## 	Parameters assumed to be fixed
## 
## data:  x
## An = 0.27471, p-value = 0.9558
cvm_test(fit, x)
## 
## 	Cramer-von Mises test of goodness-of-fit
## 	Null hypothesis: distribution 'distfun[[2]]'
## 	Parameters assumed to be fixed
## 
## data:  x
## omega2 = 0.034495, p-value = 0.9599