chi_test_disc: This function performs a number of chi-square gof tests for...

View source: R/chi_test_disc.R

chi_test_discR Documentation

This function performs a number of chi-square gof tests for continuous data

Description

This function performs a number of chi-square gof tests for continuous data

Usage

chi_test_disc(
  x,
  pnull,
  phat = function(x) -99,
  nbins = c(50, 10),
  rate = 0,
  minexpcount = 5,
  ChiUsePhat = TRUE,
  allbins
)

Arguments

x

data set

pnull

cdf under the null hypothesis

phat

=function(x) -99, function to estimate parameters, or starting values of multi-D minimum chi square minimization, or -99 if no parameters are estimated

nbins

=c(50, 10) number of bins for chi-square tests

rate

=0, rate of Poisson if sample size is random

minexpcount

=5 minimal expected bin count required

ChiUsePhat

= TRUE, if TRUE param is estimated parameter, otherwise minimum chi square method is used.

allbins

set of bins to use

Value

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


Rgof documentation built on Oct. 9, 2024, 1:06 a.m.