Git Product home page Git Product logo

sta304-paper2's Introduction

This repo is for paper 2 of STA 304, Winter 2022

It is organised as follows.

  • Overview: The code in this replication package constructs the analysis for Kearney, Levine, Pardue (2021) using Stata. One master file run all of the code to generate the data for the 4 figures in the paper, in addition to several statistics cited in the text.
  • LICENSE: Federal Reserve Bank of New York
  • inputs: data
    • Birth data
    • Population data
    • Long-term changes data
    • State level economic and policy factors used in annual regressions, 2000-2019
    • Demographic variables
  • outputs: paper
    • paper.pdf: the pdf version of paper
    • paper.rmd: the r markdown file for the paper
    • reference.bib: the bib tex for the reference
  • paper2.Rproj: the R project file for this paper
  • README.md
  • scripts: eight files in total
    • 01_figure1.r: plotting functions for the figure with label fig1
    • 02_Figure2a.r: plotting functions for the figure with label fig2a
    • 03_Figure2b.r: plotting functions for the figure with label fig2b
    • 04_Figure2c.r: plotting functions for the figure with label fig2c
    • 05_Figure2d.r: plotting functions for the figure with label fig2d
    • 06_Figure2e.r: plotting functions for the figure with label fig2e
    • 07_Figure2f.r: plotting functions for the figure with label fig2f
    • 08_figure3.r: plotting functions for the figure with label fig3
  • programs: nine programs in total for replication
    • 0_setup.do โ€“ installs necessary STATA packages; only needs to be run once.
    • main_prog.do โ€“ runs the full analysis to create figures, tables, and numbers cited in the text
    • programs/fig_1.do - reads in birth rates from CDC Final Births Reports to produce figure 1 - birth rates overall.
    • programs/figs_2a_2b.do - reads in birth rates from CDC Final Births Reports to produce figures 2a and 2b - birth rates by mother's age group and birth rates by mother's race/ethnicity.
    • programs/fig_2c.do - reads in births data from CDC WONDER and population data from the CPS to create figure 2c, births among Hispanic women by nativity and Mexican origin.
    • programs/fig_2d.do - reads in aggregated births data and population data from the CPS to create figure 2d, births by mother's educational level.
    • programs/fig_2e.do - reads in birth rate data from the CDC Final Births Reports to produce figures 2e - birth rates by marital status.
    • programs/fig_2f.do - reads in aggregated births data and population from CDC SEER to create figure 2f, birth rates by parity.
    • programs/fig_3.do - reads in aggregated births data and population from CDC SEER to create figure 3, a map displaying percent change in average birth rates from 2004- 2008 to 2015-2018.

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.