powered by
Calculate measures of association for a pair of factor variables.
factor
makeStats(x, y, chisq = FALSE, phi = FALSE, cramersV = FALSE, lambda = FALSE, gamma = FALSE, d = FALSE, taub = FALSE, rho = FALSE, n = 1000)
Either a matrix providing a cross-tabulation of two variables (if y is NULL) or one variable that will be cross-tabulated with y.
y
NULL
Either NULL if x is a matrix or a variable that will be cross-tabulated with x.
x
Logical indicating whether Chi-squared should be calculated.
Logical indicating whether phi should be calculated.
Logical indicating whether Cramer's Vshould be calculated.
Logical indicating whether Lambda should be calculated.
Logical indicating whether Gamma should be calculated.
Logical indicating whether Somer's D should be calculated.
Logical indicating whether Kendall's Tau b should be calculated.
Logical indicating whether Spearman's Rho should be calculated.
Number of simulated values used to calculate the p-value
A matrix of statistics and simulated p-values.
# NOT RUN { data(alberta) makeStats(alberta$k6group, alberta$d2, chisq=TRUE, taub=TRUE) # }
Run the code above in your browser using DataLab