Giter VIP home page Giter VIP logo

btskinner / oa_online_broadband_rep Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 2.0 1.29 MB

Replication files for Skinner (2019) Making the connection: Broadband access and online course enrollment at public open admissions institutions.

Home Page: https://link.springer.com/article/10.1007/s11162-018-9539-6

Makefile 7.86% Shell 13.36% R 71.88% Stan 6.90%
replication journal-article online-learning broadband research-in-higher-education

oa_online_broadband_rep's Introduction

This repository contains the replication files for

Skinner, B.T. (2019). Making the connection: Broadband access and online course enrollment at public open admissions institutions. Research in Higher Education, 60(7), 960โ€“999.

Requirements

To run the core analyses, you will need the following programs on your machine (tested on MacOS):

  1. R
  2. CmdStan
  3. Bash
  4. git
  5. sqlite

To build all data, including broadband databases, you will need unar to unpack the large compressed files. The easiest way to get it is with homebrew:

brew install unar

You can also use Homebrew to update Bash, git, and sqlite if you want, though that shouldn't be necessary a relatively modern machine.

To replicate analysis and tables, clone or download the repository, and choose one of the following methods:

Makefile

If your machine has make, simply run the makefile from the terminal

make

This makefile will

  1. download and install all required R packages
  2. download all required data files
  3. build/clean data
  4. run analyses
  5. knit tables/figures

OPTIONS

At the top of the makefile, adjust the settings to best your machine. The defaults should work for most users:

# --- settings -----------------------------------

# set to https or ssh (probably https for most)
git_type := https

# cores (used when building cmdstan)
cores := 4

Piecemeal

You can you can also run the scripts one by one. You will need to:

  1. Get the data files listed in ./data/README.md
  2. Build Broadband database using scripts in ./scripts/bash
cd ./scripts/bash
./make_bb.sh ../../data/broadband/zip ../../data/broadband .
  1. Download required R packages, found in get_packages.R
  2. Clean IPEDS using clean_ipeds.R
  3. Clean Broadband using clean_bb.R
  4. Clean data using clean_data.R
  5. Download and build CmdStan
  6. Compile *.stan model scripts
  7. Run analyses using ./scripts/bash/run_stan.sh
# example call (assuming in ./scripts/bash directory)
./run_stan.sh ../stan/sl_normal ../../data/cleaned sl_normal full ../../output both ../r
  1. Make figures using make_figures.R
  2. Knit tables and figures document using table_figures.Rnw

NB Most R scripts assume command line arguments. If you are not using makefile or calling from the command line, you will need to replace args object with a vector of the proper paths indicated in the files.

oa_online_broadband_rep's People

Contributors

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