Giter VIP home page Giter VIP logo

covid_dentaquest's Introduction

Dental Office Analysis

This repository contains the code to replicate the analysis of dental office visits using SafeGraph data.


Project and directory structure

This section describes the directory structure of the project. The project is divided into two primary parts. Part 1 builds the dataset(s) to be used in the analysis phase. Part 2 contains scripts to run the analysis and generate output (tables and figures).

Part 1: Build

  • inputs directory contains the raw data that should not be modified or overwritten.
  • cache directory stores copies of data during intermediate steps of data processing
  • code directory contains all scripts to read in and process the data

Part 2: Analysis

  • cache directory stores copies of data during intermediate analysis steps
  • code directory contains all scripts to read in and preprocess the data

Theoutput directory contains figures and tables generated from analysis scripts The functions folder contains all functions specific to this analysis.

Building the Project

The project root directory contains a file called project_init.R that initializes the project (installs/loads packages etc.). You should run this file each time you open R to begin working on the project.

Note that all file references within project are relative to the root directory of the project.


Data

The primary data source for the project is www.safegraph.com. To reproduce the analysis, you will need the weekly patterns data (https://docs.safegraph.com/docs/weekly-patterns). You can sign up to access the data here: https://www.safegraph.com/covid-19-data-consortium.

Data Processing

The SafeGraph patterns dataset provides foot traffic information on points of interest (POI) defined by a building or location perimeter. We subset the POI data for locations listed as Offices of Dentists (NAICS code 621210). We compile the following foot traffic data for these POIs:

  • daily visitation

  • median distance traveled by those who visit in a given week

  • dwell time by those who visit in a given week

  • locations visited on the same day within a week

Visitation data is normalized by the number of devices residing in the county where the POI is located. The foot traffic data is reported at the POI. We aggregate the distance and dwell data up to the national level by calculating the average weighted by the visit counts.

We calculate metrics by metro and nonmetro areas. We use the CDC county designation to classify counties as either metro or nonmetro.

covid_dentaquest's People

Contributors

jbayham avatar

Watchers

 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.