Description Usage Arguments Value See Also
Given names of two variables x1 and x2 in a data frame df
calculate the P value for the Chi-square test between them. Use tryCatch
to collect warnings and errors. Monte-Carlo simulation is performed by default
for more accurate P values.
| 1 | carefulChisq(x1, x2, df, sim.p.value = TRUE)
 | 
| x1 | name of one factor variable in a data frame  | 
| x2 | name of another factor variable in a data frame  | 
| df | data frame | 
| sim.p.value | if it TRUE (default) P value is computed for a Monte carlo test | 
P value or the error/warning message
Test statistic or the error/warning message
String indicating the test type: chi-square test, monte carlo simulation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.