Impact2 Electric Boogaloo

D 52 completed
Data Tool
unknown / r · small
58
Files
2,527
LOC
0
Frameworks
5
Languages

Pipeline State

completed
Run ID
#349600
Phase
done
Progress
1%
Started
Finished
2026-04-13 01:31:02
LLM tokens
0

Pipeline Metadata

Stage
Cataloged
Decision
proceed
Novelty
45.99
Framework unique
Isolation
Last stage change
2026-05-10 03:35:17
Deduplication group #50285
Member of a group with 15 similar repo(s) — canonical #93231 view group →
Top concepts (2)
Project DescriptionData/ML
Source: Repobility analyzer · https://repobility.com

AI Prompt

Create a project that replicates and extends the 2016 study on the impact of local police surges on crime and arrests in New York City. I need the core analysis to be built using R scripts, specifically replicating Models 1 through 5 for both crime and arrest outcomes. The workflow should include scripts for panel data preparation, running the main models, generating formatted output tables, performing permutation tests, and implementing staggered Difference-in-Differences estimators like Poisson TWFE and Callaway & Sant'Anna. Please structure the code to follow the provided sequence of R scripts.
r statistics econometrics crime-analysis replication panel-data nyc causal-inference
Generated by gemma4:latest

Catalog Information

This project replicates and extends the 2016 study on the impact of local police surges on crime and arrests in New York City using R scripts.

Description

The project provides a complete R‑based workflow to replicate the findings of a 2016 empirical study on police surge effects in New York City. It includes scripts for data preparation, estimation of multiple difference‑in‑differences models, and generation of publication‑ready tables. Advanced staggered‑difference‑in‑differences estimators such as Sun‑Abraham and Callaway‑Sant’Anna are implemented to offer more robust causal inference. The workflow also performs permutation tests for robustness and produces detailed logs for transparency. Researchers and analysts can use the scripts to validate the original results, explore alternative specifications, and extend the analysis to new data or policy changes.

الوصف

يقدم المشروع سير عمل كامل يعتمد على لغة R لإعادة إنتاج نتائج دراسة سابقة حول تأثير الزيادة في عدد ضباط الشرطة على الجريمة والاعتقالات في مدينة نيويورك. يتضمن السكربتات تحضير البيانات، وتقدير نماذج مختلفة من الفرق في الفرق (difference‑in‑differences)، وإنشاء جداول جاهزة للنشر. كما يدمج المشروع أساليب تقدير متقدمة للمعالجة المتقطعة مثل Sun‑Abraham وCallaway‑Sant’Anna لتوفير استنتاجات سببية أكثر قوة. بالإضافة إلى ذلك، يتم إجراء اختبارات تبديل (permutation) للتحقق من الصلابة، مع إنتاج سجلات مفصلة لضمان الشفافية. يمكن للباحثين والمحللين استخدام هذه الأدوات للتحقق من النتائج الأصلية، استكشاف مواصفات بديلة، وتوسيع التحليل إلى بيانات أو تغييرات سياسية جديدة.

Novelty

5/10

Tags

replication causal-inference police-impact-analysis crime-statistics difference-in-differences event-study staggered-treatment statistical-modeling

Claude Models

claude-opus-4.6

Quality Score

D
51.7/100
Structure
36
Code Quality
68
Documentation
48
Testing
0
Practices
69
Security
100
Dependencies
50

Strengths

  • Good security practices \u2014 no major issues detected

Weaknesses

  • No LICENSE file \u2014 legal ambiguity for contributors
  • No tests found \u2014 high risk of regressions
  • No CI/CD configuration \u2014 manual testing and deployment
  • 108 duplicate lines detected \u2014 consider DRY refactoring

Recommendations

  • Add a test suite \u2014 start with critical path integration tests
  • Set up CI/CD (GitHub Actions recommended) to automate testing and deployment
  • Add a linter configuration to enforce code style consistency
  • Add a LICENSE file (MIT recommended for open source)

Security & Health

4.6h
Tech Debt (D)
A
OWASP (100%)
PASS
Quality Gate
A
Risk (4)
Generated by Repobility's multi-pass static-analysis pipeline (https://repobility.com)
Unknown
License
15.2%
Duplication
Full Security Report AI Fix Prompts SARIF SBOM

Languages

r
48.2%
markdown
38.2%
python
7.1%
text
6.1%
xml
0.4%

Frameworks

None detected

Concepts (2)

Open methodology · Repobility · https://repobility.com/research/
CategoryNameDescriptionConfidence
Same scanner, your repo: https://repobility.com — Repobility
auto_descriptionProject DescriptionDe novo replication of "The Effects of Local Police Surges on Crime and Arrests in New York City" (PLOS ONE, 2016), with planned extensions using modern staggered-DD estimators and finer spatial resolution.80%
auto_categoryData/MLdata-ml60%

Quality Timeline

1 quality score recorded.

View File Metrics

Embed Badge

Add to your README:

![Quality](https://repos.aljefra.com/badge/73696.svg)
Quality BadgeSecurity Badge
Export Quality CSVDownload SBOMExport Findings CSV