fitur 0.6.0 Release

[This article was first published on R on Thomas Roh, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

  • 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)
x <- rgamma(100, 1, 1)
fit <- fit_univariate(x, 'gamma')
ks_test(fit, x)
## 
##  One-sample Kolmogorov-Smirnov test
## 
## data:  x
## D = 0.082165, p-value = 0.5093
## alternative hypothesis: two-sided
ad_test(fit, x)
## 
##  Anderson-Darling test of goodness-of-fit
##  Null hypothesis: distribution 'distfun[[2]]'
## 
## data:  x
## An = 0.49058, p-value = 0.756
cvm_test(fit, x)
## 
##  Cramer-von Mises test of goodness-of-fit
##  Null hypothesis: distribution 'distfun[[2]]'
## 
## data:  x
## omega2 = 0.079325, p-value = 0.6968

To leave a comment for the author, please follow the link and comment on their blog: R on Thomas Roh.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)