chi2tab: Table of chisq.test() test for several explanatory variables
Description
Performs the function chisq.test() for the main.var and
var.
Usage
chi2tab(data, main.var, var, nb.dec = 1)
Arguments
main.var
string. The categorical variable against the variable
will be compared.
var
string. The categorical variable to compare with.
nb.dec
digit. Number of decimals for the percentage.
Value
table with n (percentage) per level and p-value of chi2 test.