chisquare.test {simgof}R Documentation

chisquare.test

Description

This function does the chisquare test

Usage

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

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)               

[Package simgof version 1.0.2 Index]