chi_test_disc {Rgof}R Documentation

This function performs a number of chisquare gof tests for discrete data

Description

This function performs a number of chisquare gof tests for discrete data

Usage

chi_test_disc(
  x,
  pnull,
  param,
  nbins = as.integer(c(100, 10)),
  formula = "Pearson",
  rate = 0,
  Minimize = 0L,
  minexpcount = 2
)

Arguments

x

data set

pnull

cdf under the null hypothesis

param

starting values of multi-D minimum chi square minimization

nbins

=c(100, 10) number of bins for chisquare tests

formula

type of chi square formula to use

rate

rate of Poisson if sample size is random, 0 otherwise

Minimize

Should minimum chi square be found?

minexpcount

=2 minimal expected bin count required

Value

A numeric matrix of test statistics, degrees of freedom and p values


[Package Rgof version 1.2.2 Index]