DOI

The goal of this project is to demonstrate the feasibility of creating replicable blog posts for national statistical agencies. We pick a single blog post from the United States Census Bureau, but the general principle could be applied to many countries’ national statistical agencies.

Source document

A blog post by Jim Lawrence, U.S. Census Bureau [2016] (archived version, locally archived version).

Source data

Data to produce a graph like this can be found at https://www.census.gov/ces/dataproducts/bds/data_firm.html. Users can look at the economy-wide data by age of the firm, where startups are firms with zero age:

Select Firm Age

Select Firm Age

Getting and manipulating the data

We will illustrate how to generate Figure 1 using R [2019]. Users wishing to use Javascript, SAS, or Excel, or Python, can achieve the same goal using the tool of their choice. Note that we will use the full CSV file at http://www2.census.gov/ces/bds/firm/bds_f_age_release.csv, but users might also want to consult the BDS API.

We are going to read in two files: the economy wide file bds_f_all_release.csv, and the by-firm-age file bds_f_age_release.csv:

We’re going to now compute the fraction of total U.S. employment (Emp) that is accounted for by job creation from startups (Job_Creation if fage4="a) 0"):

Create Figure 1

Now we simply plot this for the time period 2004-2014:

Compare to original image:

original image

original image

References

Allaire, J., Xie, Y., McPherson, J., et al. 2019. Rmarkdown: Dynamic documents for r..

Arnold, J.B. 2018. Ggthemes: Extra themes, scales and geoms for ’ggplot2’..

Lawrence, J. 2016. How Much Do Startups Impact Employment Growth in the U.S.? http://researchmatters.blogs.census.gov/2016/12/01/how-much-do-startups-impact-employment-growth-in-the-u-s/.

R Core Team. 2019. R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria.

Wickham, H. 2016. Ggplot2: Elegant graphics for data analysis. Springer-Verlag New York.

Xie, Y. 2019. Knitr: A general-purpose package for dynamic report generation in r..