fit_dist_test {EnviroPRA2} | R Documentation |
Summary of Godness-of-fit tests
Description
Returns a data frame with the summary of Fiting distribution tests for the following distributions: "normal","log-normal","geometric","exponential","Poisson", "cauchy" , "logistic" and "weibull".
The considered Godness-of-fit tests are: Bayesian Information Criterium (BIC), Akaike Information Criterium (AIC), Kolmogorov-Smirnov test and Anderson-Darling test.
Usage
fit_dist_test(x)
Arguments
x |
A numeric vector of length at least one containing only finite values |
Value
Distribution |
Name of the tested distribution |
BayesianIC |
Bayesian Information Criterium (BIC) |
AkaikeIC |
Akaike Information Criterium (AIC) |
Kol-SmirD |
The value of the Kolmogorov-Smirnov test statistic |
Kol-SmirPvalue |
The value of the Kolmogorov-Smirnov test p-value |
Signigicance KS |
A column to check the significance of the Kolmogorov-Smirnov test |
And-Darl |
The value of the nderson-Darling test statistic |
And-DarlPvalue |
The value of the Anderson-Darling test p-value |
Signigicance AD |
A column to check the significance of the Anderson-Darling test |
Author(s)
F. Barrio-Parra
See Also
ad.test library(kSamples), AIC library(stats), BIC library(stats), ks.test library(stats),
Examples
set.seed(123)
a <- rnorm(n=100, mean =10, sd = 1)
fit_dist_test(a)
b<- rexp(n = 100,rate = 1)
fit_dist_test(b)