Pearson's Chi-Square Test Dialog Function
DESCRIPTION:
This function is used by the Pearson's Chi-Square Test dialog.
USAGE:
menuChisq(x, y, data, correct=T, print.p=T, is.table=F)
REQUIRED ARGUMENTS:
- x
-
factor variable indicating first margin.
- y
-
factor variable indicating second margin.
- data
-
if
is.table=F
then
data
is the data set containing
x
and
y
.
Otherwise
data
is a contingency table.
OPTIONAL ARGUMENTS:
- correct
-
logical indicating whether to apply Yates' continuity correction.
- print.p
-
logical indicating whether to print a summary of the test.
- is.table
-
logical indicating whether
data
is a contingency table.
VALUE:
an
htest
object as described in the help for
chisq.test
.
SEE ALSO: