https://github.com/amoneva/cacc
An R Package to compute Conjunctive Analysis of Case Configurations (CACC), Situational Clustering Tests, and Main Effects
Science Score: 39.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 6 DOI reference(s) in README -
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.3%) to scientific vocabulary
Keywords
criminology
data-analysis
r
social-science
Last synced: 10 months ago
·
JSON representation
Repository
An R Package to compute Conjunctive Analysis of Case Configurations (CACC), Situational Clustering Tests, and Main Effects
Basic Info
Statistics
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
- Releases: 2
Topics
criminology
data-analysis
r
social-science
Created almost 4 years ago
· Last pushed over 1 year ago
Metadata Files
Readme
Changelog
License
README.Rmd
---
output: github_document
---
```{r}
#| include: false
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# `cacc`: Conjunctive Analysis of Case Configurations
[](https://CRAN.R-project.org/package=cacc)
[](https://lifecycle.r-lib.org/articles/stages.html#stable)
[](https://github.com/amoneva/cacc/actions/workflows/R-CMD-check.yaml)
An R Package to compute Conjunctive Analysis of Case Configurations (CACC), Situational Clustering Tests, and Main Effects
## Overview
A set of functions to conduct Conjunctive Analysis of Case Configurations (CACC) (Miethe, Hart & Regoeczi, 2008), to identify and quantify situational clustering in dominant case configurations (Hart, 2019), and to determine the main effects of specific variable values on the probabilities of outcome (Hart, Rennison & Miethe, 2017). Initially conceived as an exploratory technique for multivariate analysis of categorical data, CACC has developed to include formal statistical tests that can be applied in a wide variety of contexts. This technique allows examining composite profiles of different units of analysis in an alternative way to variable-oriented methods.
## Installation
To install cacc, you can run:
```{r install}
#| eval: false
# Install {cacc} from CRAN
install.packages("cacc")
```
You can also install the development version of cacc from [GitHub](https://github.com/) with:
```{r install-devel}
#| eval: false
# Check if the `devtools` package needs to be installed
if (!require("devtools")) install.package("devtools")
# Install {cacc} from GitHub
devtools::install_github("amoneva/cacc")
```
## Examples
```{r load}
#| warning: false
# Load {cacc} and the {tidyverse}
library(cacc)
library(tidyverse)
```
```{r explore}
# Explore the dataset
onharassment |> glimpse()
```
### CACC
```{r cacc}
# Calculate the CACC matrix
cacc_matrix <- onharassment |>
cacc(
ivs = sex:privacy,
dv = rep_victim
)
# Look at the first few rows
cacc_matrix |> head()
```
### Situational Clustering Tests
```{r chi}
# Compute a Chi-Square Goodness-of-Fit Test
cacc_matrix |> cluster_xsq()
```
```{r sci}
# Compute a Situational Clustering Index (SCI)
cacc_matrix |> cluster_sci()
# Plot a Lorenz Curve to visualize the SCI
cacc_matrix |> plot_sci()
```
### Main Effects
```{r effect}
# Compute the main effects for a specific variable value
cacc_matrix |>
main_effect(
iv = sex,
value = "female",
# Set to `FALSE` for a numeric vector of effects
summary = TRUE
)
# Plot the distribution of the main effect
cacc_matrix |>
plot_effect(
iv = sex,
value = "female"
)
```
## 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
- 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
- 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
Owner
- Name: Asier Moneva
- Login: amoneva
- Kind: user
- Website: https://asiermoneva.com/
- Twitter: crimoneva
- Repositories: 2
- Profile: https://github.com/amoneva
Criminologist. Postdoctoral Researcher at the Netherlands Institute for the Study of Crime and Law Enforcement (NSCR) & The Hague University of Applied Sciences
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 1
- Total pull requests: 0
- Average time to close issues: 11 days
- Average time to close pull requests: N/A
- Total issue authors: 1
- Total pull request authors: 0
- Average comments per issue: 1.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 0
- Average time to close issues: 11 days
- Average time to close pull requests: N/A
- Issue authors: 1
- Pull request authors: 0
- Average comments per issue: 1.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- bbolker (1)
Pull Request Authors
Top Labels
Issue Labels
documentation (1)
good first issue (1)
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 214 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 2
- Total maintainers: 1
cran.r-project.org: cacc
Conjunctive Analysis of Case Configurations
- Homepage: https://github.com/amoneva/cacc
- Documentation: http://cran.r-project.org/web/packages/cacc/cacc.pdf
- License: MIT + file LICENSE
-
Latest release: 0.1.1
published over 1 year ago
Rankings
Forks count: 21.9%
Dependent packages count: 29.8%
Stargazers count: 35.2%
Dependent repos count: 35.5%
Average: 37.8%
Downloads: 66.9%
Maintainers (1)
Last synced:
11 months ago
Dependencies
DESCRIPTION
cran
- R >= 2.10 depends
- dplyr * imports
- ggplot2 * imports
- rlang * imports
- stats * imports
- tibble * imports
- tidyr * imports
.github/workflows/R-CMD-check.yaml
actions
- actions/checkout v3 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite