Model Code Repository

Access the Code Repository

The Virtual Academy model code repository gives corrections analysts access to a variety of code templates written in the R statistical programming language to improve data analytic efficiency and accuracy. This repository includes code to help reduce time spent compiling reports, tables, and visualizations.

Additionally, all templates encourage reproducibility to prevent data discrepancies and simplify common time-consuming tasks. Interested analysts can immediately use these templates to do the following:

  • Easily access publicly available census data.
  • Clean and manipulate population and corrections data for reporting.
  • Calculate relevant metrics.
  • Produce meaningful, digestible data visualizations.

Finally, several templates also allow analysts to replicate existing, relevant analyses of reports available to the public including the following:

You might also be interested in

Apply Now for Resident Analyst Program to Increase Data Analysis Capacity at Departments of Corrections

Corrections leaders balance the complex priorities of maintaining public safety, operating secure facilities, providing needed care and services…

Read More

Transforming Lives with Access to Needed Mental Health Care: Q&A with New CSG Justice Center Advisory Board Member Dr. Courtney Harvey

The CSG Justice Center Advisory Board establishes the policy and project priorities of the organization. The board features…

Read More

Six States Commit to Improving Statewide Strategies to Address Youth Crime, Violence and Behavioral Health

The Council of State Governments (CSG) Justice Center has launched the Collaborating for Youth and Public Safety Initiative…

Read More