powered by
This function makes use of the crosstab function from the descr package
xtp.chi2(data, y, x, w = NULL)
Dataset to be sorted
Dependent variable
Independent variable
Weights (optional)
Returns a data frame