xt {DAMisc} | R Documentation |
Cross-Tabulation of Weighted or Unweighted Data
xt(data, var, byvar = NULL, controlvar = NULL, weight = NULL, ...)
data |
Either a data frame or a survey design object. |
var |
Row variable for the cross-tabular. |
byvar |
Optional column variable for the cross-tabulation. If |
controlvar |
The name of a categorical control variable. |
weight |
A vector of weights to be applied to the table. |
... |
Other arguments to be passed down to Produces a cross-tabulation and Chi-square statistic for weighted or unweighted data. |
A list with two elements - table of class tabyl
and the returned results from svychisq
.