fitur 0.6.0 Release

August 4, 2018
By

(This article was first published on R on Thomas Roh, and kindly contributed to R-bloggers)

  • 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 on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers

Sponsors

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)