Giter Site home page Giter Site logo

snowdj / vse-risk-tool Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pbaylis/vse-risk-tool

0.0 0.0 0.0 2.3 MB

VSE COVID Risk Tool Visualization Code

Home Page: https://baylislab.shinyapps.io/risk-tool-v2/

License: MIT License

R 98.89% HTML 1.11%

vse-risk-tool's Introduction

vse-risk-tool

Code repository for the VSE COVID Risk Tool, hosted online at https://baylislab.shinyapps.io/risk-tool-v2/.

Purpose

VSE COVID-19 Risk Tool can be used to compare some of the risks and benefits of re-opening different sectors of the BC economy. This repository contains the code necessary to produce a Shiny app with two main visualizations:

  1. An interactive scatterplot comparing measures of economic productivity with a risk index for occupations in BC sectors.
  2. A flexible table to show measures of risk, economic productivity, and a range of other relevant measures by disaggregated occupations and subsectors. This table can respond to selections made in the scatterplot.

Usage

  1. Open vse-risk-tool.Rproj in RStudio.
  2. Execute Run App in RStudio.

File structure

  • data/input/ contains tidy data aggregated to its specific level for each province, for example:
    • /BC/ind_3_digit.csv: Measures of centrality for each subsector
    • /BC/ind_2_digit.csv: Share of GDP and employment for each sector
    • /BC/occ_4_digit_job.csv: Occupation risk levels for each subsector
    • /BC/occ_4_digit_hh.csv: Risk levels associated with the household for each subsector
    • /BC/occ_2_digit_desc.csv: Two digit occupation code (NOC47) and its description
    • /BC/risk_index_coefficients.csv: Risk coefficients used in VSE Risk Tool
  • data/output/ contains the input data merged for each province to be used in the VSE Risk Tool

Note on build-data.R

By default, this tool produces these figures using BC-specific data in data/, which are produced by build-data.R. build-data.R builds the BC-specific on source data on occupation risk and economic value from outside of the repository. Users with access to the BC-specific data can run build-data.R by adding their location for the cleaned BC-specific data to the RAW_POSSIBLE character vector in setup.R.

Most users, however, should consider this repository to be a example of a useful way to visualize the underlying data. However, repurposing this code for other regions will require significant additional data work, as it is only currently designed to handle BC-specific data.

vse-risk-tool's People

Contributors

jjhutchi avatar pbaylis avatar sgyetvay 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.