powered by
show results of a chi-square test visually using chisq.test
showChiSq.Test(x, y = NULL, p = rep(1/length(x), length(x)), simulate.p.value = FALSE, nreps = 2000, verbose = 1)
a numeric vector or matrix. x and can also be factors
a numeric vector
a vector of proabilities the same length as x. Used for goodness-of-fit tests. Must be a valid distribution
boolean, if TRUE use simulation to estimate p-value
if simulate.p.value = TRUE number of simulations to complete
level of visual output, 0 = silent
results of chisq.test call
# NOT RUN { showChiSq.Test(x = c(1,2,1), y= c(1,2,2)) # }
Run the code above in your browser using DataLab