main_effect {cacc} | R Documentation |
Main effect
Description
Computes the main effect that a specific value of a variable produces on the outcome probability in a cacc_matrix
.
Usage
main_effect(cacc_matrix, iv, value, summary = TRUE)
Arguments
cacc_matrix |
A tibble. The output of the |
iv |
A single variable name contained in a |
value |
A single numeric or character value the |
summary |
Logical. Defaults to |
Value
When summary = TRUE
, returns a tibble with summary stats for the main effect. If summary = FALSE
, returns a tibble containing a single numeric variable, ranging from 0 to 1, containing the main effects of the value
of the selected iv
on the probability of outcome.
References
Hart, T. C., Rennison, C. M., & Miethe, T. D. (2017). Identifying Patterns of Situational Clustering and Contextual Variability in Criminological Data: An Overview of Conjunctive Analysis of Case Configurations. Journal of Contemporary Criminal Justice, 33(2), 112–120. https://doi.org/10.1177/1043986216689746
Examples
main_effect(
cacc_matrix = cacc(onharassment, ivs = sex:privacy, dv = rep_victim),
iv = age,
value = "15-17"
)
main_effect(
cacc_matrix = cacc(onharassment, ivs = sex:privacy, dv = rep_victim),
iv = age,
value = "15-17",
summary = FALSE
)