Giter Club home page Giter Club logo

cdcvis's Introduction

CDC death data visualization

This is used to create Sankey diagrams of data of causes of death as obtained from the CDC Wonder Data Request system. It is a Rust program that collates and filters the data to make it presentable. The parameters to the coalescepct function in main.rs are particularly relevant for filtering.

I have included an example png of the output in this directory. A cut-and-pastable description of its generation using the code in this repository follows:

The data comes from CDC Wonder Data Request. Parameters are as follows: ten-year age groups: 35-44 and 45-54; year: 2016; Group by: ICD chapter, then ICD sub-chapter, then cause of death, with "export results" checked. This particular age group was selected because it tends to exclude disproportionate causes of death at the very young or very old edge of the spectrum; "old age" is not a listed cause of death. This, therefore, tends to show "what kills people early." It should be noted that this shows only the immediate cuase of death; in particular, smoking will not show up here as a direct cause of death because it manifests itself as things like lung cancer.

It was then fed through my cdcvis program. This program takes the TSV file from CDC Wonder, parses it, filters it down to combine the myriad sub-categories into "Other" so that the resulting chart is manageable, and then outputs data in a form that Sankeymatic can handle. I wrote it as an exercise as part of learning Rust.

The output from cdcvis is then sent to Sankeymatic Build.

cdcvis's People

Contributors

jgoerzen avatar

Watchers

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