chisquare.test: chisquare.test

Description Usage Arguments Value Examples

Description

This function does the chisquare test

Usage

1
chisquare.test(x, case, which = "RGd")

Arguments

x

data set

case

setup info

which

type of binning (either RGd, Equal Size or Equal Prob)

Value

A numeric vector of length 1 with the value of the chi-square statistic.

Examples

1
2
3
4
5
case <- list(B=1000, param = NULL, n = 1000, pnull = function(x, param) punif(x), 
        rnull = function(n, param) runif(n), qnull = function(x, param) qunif(x), 
        est.mle = function(x) NA, nbins = 10)
x <- runif(1000)
chisquare.test(x, case)               

simgof documentation built on Jan. 27, 2021, 9:07 a.m.