cluster_xsq {cacc} | R Documentation |
Chi-Square Goodness-of-Fit Test
Description
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
.
Usage
cluster_xsq(cacc_matrix)
Arguments
cacc_matrix |
A tibble. The output of the |
Value
Returns a list with the Chi-square results. This is the same object returned by the chisq.test
function from the stats
package.
References
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
Examples
cluster_xsq(cacc(onharassment, ivs = sex:privacy, dv = rep_victim))
[Package cacc version 0.1.0 Index]