Learn R Programming

R2sample (version 4.0.1)

chi_test: This function runs the chi-square test for continuous or discrete data

Description

This function runs the chi-square test for continuous or discrete data

Usage

chi_test(dta, nbins = c(50, 10), minexpcount = 5, typeTS, ponly = FALSE)

Value

A list with the test statistics, the p value and the degree of freedom for each test

Arguments

dta

a list with two elements for continuous data or three elements for discrete data, Can also include weights for continuous data

nbins

=c(50, 10) number of desired bins

minexpcount

=5 smallest number of counts required in each bin

typeTS

=5 type of problem, continuous/discrete, with/without weights

ponly

Should the p value alone be returned?