Learn R Programming

poliscidata (version 1.2.0)

xtp.chi2: Cross tabulation with chi-squared statistic

Description

This function makes use of the crosstab function from the descr package

Usage

xtp.chi2(data, y, x, w = NULL)

Arguments

data

Dataset to be sorted

y

Dependent variable

x

Independent variable

w

Weights (optional)

Value

Returns a data frame