GithubHelp home page GithubHelp logo

polmort-24's Introduction

This repository contains all code and data needed to replicate 'Police use of force killings in the US have increased and exposure remains unequal' by Frank Edwards and Ryan Brown. Data are derived from Mapping police violence (https://mappingpoliceviolence.org/); SEER Population data (https://seer.cancer.gov/popdata/download.html); and CDC WONDER Underlying Cause of Death (https://wonder.cdc.gov/Deaths-by-Underlying-Cause.html).

make_all.R is the primary make script for the file. After uncommenting lines 3-8, you can execute all code needed to estimate models used in the paper.

  • QA.R deduplicates and cleans mapping police violence data and outputs data ready for multiple imputation
  • impute.R conducts and outputs multiple imputations of MPV data
  • models.R estimates and outputs models for life table estimation. Note that this script is computationally intensive and may be best to run remotely
  • make_bsts.R estimates and outputs Bayesian structural time series models over imputed data
  • make_causalEst.R estimates and outputs BSTS models with regression predictors
  • make_posterior_preds.R processes the output of models.R and outputs posterior predictions
  • make_table scripts contain functions to produce multiple decrement life tables
  • read_nat.R reads and pre-processes all study data
  • make_figures.r makes study visuals
  • appx.r makes appendix visuals

polmort-24's People

Contributors

f-edwards avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.