Goodness-of-fit test statistic for a fitted distribution
Usage
gof_test(x, d, test = c("ks", "ad", "chi_squared"))Examples
x <- c(2.1, 3.4, 1.8, 4.9, 3.3, 2.7, 5.1, 3.9)
gof_test(x, distribution("Normal", c(3.4, 1.1)))
#> [1] 0.163659
Goodness-of-fit test statistic for a fitted distribution
gof_test(x, d, test = c("ks", "ad", "chi_squared"))x <- c(2.1, 3.4, 1.8, 4.9, 3.3, 2.7, 5.1, 3.9)
gof_test(x, distribution("Normal", c(3.4, 1.1)))
#> [1] 0.163659