cluster_xsq {cacc} | R Documentation |
Computes a Chi-Square Goodness-of-Fit Test to determine whether there is statistically significant clustering of observations among dominant profiles in a cacc_matrix
.
cluster_xsq(cacc_matrix)
cacc_matrix |
A tibble. The output of the |
Returns a list with the Chi-square results. This is the same object returned by the chisq.test
function from the stats
package.
Hart, T. C. (2019). Identifying Situational Clustering and Quantifying Its Magnitude in Dominant Case Configurations: New Methods for Conjunctive Analysis. Crime & Delinquency, 66(1), 143-159. https://doi.org/10.1177/0011128719866123
cluster_xsq(cacc(onharassment, ivs = sex:privacy, dv = rep_victim))