Coder Social home page Coder Social logo

scotus's Introduction

SCOTUS Readme file

This repo contains the input data (SCOTUS.csv and smr.txt) and the programs needed for reproducing the analysis of Supreme Court Justice mortality, as published in:

Reynolds RJ, Kush SJ, Day SM, Vachon P. Comparative mortality and risk factors for death among Justices of the Supreme Court of the United States, 1789-2013: experience from an occupational cohort with over two centuries of follow-up. Journal of Insurance Medicine. 2015;45:9โ€“16.

In order to use these files correctly, run the program SCOTUS_cohort.R first, followed by SCOTUS_lifeintervals.R. After that the SCOTUS_models.R program will have the data it needs to fit models. Be sure to change the location in the cohort program to find the data source (SCOTUS.csv) in your working directory.

The program SCOTUS_SMR_plot.R reads the smr.txt file and then creates a chart of the SMRs by decade, with confidence bands, as was presented in the original paper. Again, make sure to change the directory information to point to the location of smr.txt in your working directory. The second set of commands towards the bottom of the page creates an updated figure with an extra SMR in red.

The data in smr.txt was created separately through a tedious process. Should you want the tools and instructions to do these computations, please contact the authors.

scotus's People

Contributors

mortalityresearch avatar robertreynolds77 avatar smday888 avatar

Stargazers

 avatar Quentin Spencer avatar Justin Hill avatar

Watchers

Quentin Spencer avatar  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.