Premium Project

Trends in Maryland Crime Rates

Apply hierarchical and mixed-effect models to analyze Maryland crime rates.

Start Project
  • 12 tasks
  • 198 participants
  • 1,500 XP

Project Description

Note: this project is soft launched, which means you may experience some bugs. Please click "Report an Issue" in the top-right corner of the Project interface to provide feedback.

Is the violent crimes rate in Maryland increasing, decreasing, or staying the same? In this project, you will find out. First, you will wrangle the raw data supplied by the State of Maryland. Second, you will analyze the data using a hierarchical regression to examine both the statewide crime rate and crime rate for each Maryland county. Third, you will plot the changes in crime rates for each county.

This project requires both R and statistical skills. For R, this includes proficiency with the Tidyverse, including ggplot2. These skills are taught in DataCamp courses Introduction to the Tidyverse, and Data Visualization with ggplot2 (Part 1). For statistics, this includes Multiple and Logistic Regression and Hierarchical and Mixed Effects Models.

You will use the crime statistics from the State of Maryland from 1975 to 2016. The Maryland Statistical Analysis Center provides this and updates data.

Project Tasks

  • 1Maryland crime data
  • 2Raw data and trend lines
  • 3Re-scale the data
  • 4Build a LMER
  • 5Model outputs
  • 6Format model coefficients
  • 7Maryland map data
  • 8Matching county names
  • 9Merging data frames
  • 10Mapping trends
  • 11Polish the map
  • 12Compare populations and crime rates
Instructor Avatar
Richard Erickson

Quantitative Ecologist

Richard helps people to experience and understand their increasingly numerical world. For his day job he develops new quantitative methods for monitoring and controlling invasive species as well as helping other scientists analyze and understand their data. He has worked on diverse datasets ranging from continent wide species distributions to pesticides in playa wetlands. After hours, he teaches SCUBA Diving as a NAUI Instructor. He has been a "UserR" since 2007.

See More

Technology

  • R LogoR
  • Topics

    Data ManipulationData VisualizationProbability & StatisticsCase Studies