Learn R Programming

fitur (version 0.6.2)

gof_tests: Goodness of Fit Testing

Description

Apply all goodness of fit tests and return a data.frame with the results

Usage

gof_tests(fits, x)

Arguments

fits

a list object produced from fit_univariate, fit_empirical, or fit_univariate_man

x

numeric vector of sample data

Value

a data.frame of test statistic results for each distribution

Examples

Run this code
# NOT RUN {
set.seed(84)
x <- rgamma(100, 1, 1)
dists <- c('gamma', 'lnorm', 'weibull')
multipleFits <- lapply(dists, fit_univariate, x = x)
gof_tests(multipleFits, x)
# }

Run the code above in your browser using DataLab