showChiSq.Test: Show Chi-Square Test

Description Usage Arguments Value Examples

View source: R/CtsHypothesisTests.R

Description

show results of a chi-square test visually using chisq.test

Usage

1
2
3
4
5
6
7
8
showChiSq.Test(
  x,
  y = NULL,
  p = rep(1/length(x), length(x)),
  simulate.p.value = FALSE,
  nreps = 2000,
  verbose = 1
)

Arguments

x

a numeric vector or matrix. x and can also be factors

y

a numeric vector

p

a vector of proabilities the same length as x. Used for goodness-of-fit tests. Must be a valid distribution

simulate.p.value

boolean, if TRUE use simulation to estimate p-value

nreps

if simulate.p.value = TRUE number of simulations to complete

verbose

level of visual output, 0 = silent

Value

results of chisq.test call

Examples

1
showChiSq.Test(x = c(1,2,1), y= c(1,2,2))

mcStats documentation built on March 26, 2020, 7:37 p.m.