knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)
# Please put your title here to include it in the file below.
Title <- "A Before-After Intervention Experiment and Survey"

covid19.commuting

This repository contains the data and code for our research report:

McBride, Elizabeth C., Goulias, Konstadinos G., (2021). r Title. Funding Source: US DOT. Project Number: PSR-20-15. https://rosap.ntl.bts.gov/view/dot/58962

Contents

The analysis directory contains:

Also in the analysis directory are three sub-directories that are not used in this project. During the initiation of this project, the function rrtools::use_analysis() is run. This function creates the file structure used in this project. They are included because they will be automatically created when you download and run this project locally.

How to download and run locally

This research compendium has been developed using the statistical programming language R. To work with the compendium, you will need installed on your computer the R software itself and optionally RStudio Desktop. The statistical analysis in this compendium also relies on the proprietary software Mplus. You will need an Mplus license and installation on your computer to run the complete analysis. Mplus version 8.6 was used to run this analysis, although using a later version should not cause any issues.

This compendium was created with the package rrtools, which creates a research compendium directory template. There are some files and folders created by rrtools that are not currently being pushed to GitHub, so there are a few steps if you want to work on this project from a new computer:

  1. Clone the repository as usual
  2. Install rrtools by following the instructions here
  3. Run rrtools::use_analysis()
  4. Add the raw data from Box to /analysis/data/raw_data
  5. If you get an error there is no package called ..., then install the package(s) named using install.packages() before re-running the line that threw the error

You are now ready to start using this project compendium!

.R file naming protocol

Below is the format used:

##_##_descriptive-name.R

Underscores (_) separate the sections of the file name. Each section of the file name has a purpose:

Number | Description :----: | ----------- 01 | Data cleaning and preparation 02 | Interfacing between Mplus and R to run and analyze models 03 | Data visualization 9# | Scripts for supplementary work

Licenses

Text and figures : CC-BY-4.0

Code : See the DESCRIPTION file

Data : CC-0 attribution requested in reuse

Contributions

We welcome contributions from everyone. Before you get started, please see our contributor guidelines. Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.



e-mcbride/covid19.commuting documentation built on April 14, 2022, 5:30 p.m.