cacc {cacc}R Documentation

Conjunctive Analysis of Case Configurations

Description

Computes a Conjunctive Analysis of Case Configurations (CACC).

Usage

cacc(data, ivs, dv)

Arguments

data

A data frame or a tibble.

ivs

A vector of names of the independent variables, without quotes. Variables must be categorical, either integer, character, or factor.

dv

Name of the dependent variable, without quotes. Variable must be a dichotomous integer or factor with values 0 (absence) and 1 (presence).

Value

Returns a tibble with the CACC matrix.

References

Miethe, T. D., Hart, T. C., & Regoeczi, W. C. (2008). The Conjunctive Analysis of Case Configurations: An Exploratory Method for Discrete Multivariate Analyses of Crime Data. Journal of Quantitative Criminology, 24, 227–241. https://doi.org/10.1007/s10940-008-9044-8

Examples

cacc(
  data = onharassment,
  ivs = c(sex, age, hours, snapchat, instagram, facebook, twitter, name, photos, privacy),
  dv = rep_victim
)
cacc(onharassment, ivs = sex:privacy, dv = rep_victim)

# Syntax with the native R pipe
onharassment |> cacc(ivs = sex:privacy, dv = rep_victim)

[Package cacc version 0.1.0 Index]