Skip to content

akhilrao/tragedy-space-commons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tragedy-space-commons

This repository contains data, code, and images for the paper "Orbital-use fees could more than quadruple the value of the space industry". The majority of the model output was generated in R 3.6.1, but "/data/bootstrap_sims.csv" with 250 bootstrapped paths was generated in R 3.4.4. Changes to the behavior of RNG in 3.6.0 mean that replicating the 250 draws will require adding "RNGkind(sample.kind="Rounding")" to the top of "/data/final_script.r".

To cite the data/code used in the paper without referencing the analysis, you may use this DOI: https://doi.org/10.57968/Middlebury.21565140

How is this repository organized?

* /bin contains all of the R code
* /data contains all of the calibration and output data
* /images contains all generated figures

How do I recreate the figures and data files?

To run the code and generate the paper's figures and data:

1. Make sure R and the necessary R packages are installed. 
You can find a list of necessary packages in the header of "/data/final_script.r"
2. Run "final_script.r" (_R code: source("final_script.r")_)
Note that the default is to use 3 cores. You will want to adjust this in "final_script.r".

What does the code in /bin do?

Broadly, there are two types of code files: those which describe functions or algorithms to compute functions ("methods"), and those which contain scripts that compute those functions/implement those algorithms ("content").

There are four main "methods" files:

* `equations.r' contains the main theoretical equations. 
	If there's a (simple!) economic or physical equation defined in the SI, it's in here. 
* `simulation_algorithms.r' contains the computational algorithms used and described in the SI. 
	Dynamic programming, path generation -- it's in here, though it's broken out into many smaller functions.
* `simulation_functions.r' contains functions used in `simulation_algorithms.r'.
 	These include grid generators and a linear interpolator. There's some overlap here with the two files above.
* `plotting_functions.r' contains some functions used to generate plots, mostly in the calibration section.

The remaining files are "content" files:

About

Repository for "Orbital-use fees could more than quadruple the value of the space industry"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published