Chapter 3 Where to Find Data
This is a longer and more detailed chapter following on Alternative Methods of Data Collection. Many of the data sources described here are also covered there, but in this chapter we’ll go into a bit more depth about the ins and outs of using these sources.
This list is not complete, it’s more of a sample of 4 really good and common data sources. If you can get comfortable collecting data from these it’ll be easier to begin exploring other sources, and soon you’ll be swimming in data.
In this chapter there’ll be a separate sub-section for each data source, where I’ll first describe the data in some depth before including a video walking you through navigating the website. I think showing rather than telling is an easier way to communicate where to look when getting started on the sites. The best way to learn about the data though is to go in an practice creating your own data.
Once you’ve created the data there’s the challenge of loading that data into R. As they say, that’s a challenge for another day or another chapter. In case that was unclear, the link embedded under the word “chapter” takes you to a chapter about reading data into R.
3.1 Before we begin
One of the most important things to understand in looking for data is the unit of observation and unit of analysis of our research question. There is lots of great data that just wont match with the unit of analysis you need. Let’s remind ourselves quickly what those terms mean.
Unit of analysis is what is the entity (people, groups, communities, states, phenomena) that your research question is concerned with while the unit of observation is the entity you collect or observe data for. Often times they will match and other times they’ll be slightly different. But being cognizant of the different units of observation that are available from different sources is critical to being able to develop new meaningful projects. We can do a study based on data that is collected at the state level, or for individuals, or for events (credit card transactions, for instance). Whether those units of observation are useful to answer our research question depends on the question we have.
Sometimes our unit of analysis is dictated by our research question, but often it’s dictated by the availability of data. One might not want to study voting habits at the county level, but unfortunately counties is the smallest unit of geography that voting data is regularly available for. That can alter research questions to make them focused on phenomena that occurs in counties. It’s not much fun asking research questions that you can’t hope to get data to answer, so often times researchers end up asking questions about units of observation where they know they can get the data.
Let’s start then by talking about a few different units of observation, so that we’re clear on the terms I might be using throughout this chapter.
- Events
- Individual
- Families
- Neighborhood - which are often measured as census tracts
- City
- County
- Metropolitan Area
- State
- Nation
3.3 Current Population Survey
Let’s start by comparing and contrasting the General Social Survey with another option for freely available data. Like the GSS, the Current Population Survey (CPS) is done for individuals. However, the CPS, sadly, asks far fewer questions and particularly fewer personal or opinion questions. We wont know from the CPS whether people have ever smoked marijuana or their views about immigrants or whether they think astrology is scientific. But, the good news is that for what the census does ask we can use it with many different units of analysis, allowing us to make estimates about everything from individuals to neighborhoods, cities, metropolitan statistical areas, states, and the nation.
The CPS is a monthly survey run by the Bureau of Labor Statistics that is primarily used to track the employment situation for the country, The survey provides the official estimates of the unemployed rate for the United States. However, the survey collected a lot more information, particularly as part of its “monthly supplements” where it asks some respondents more detailed questions about their living situation, voting, volunteering, or other questions.
The big benefit of the CPS is that we can make estimates at different units of observation using the data, but the largest drawback is a lack of detailed questions. That said, there’s still a lot of interesting work that can be done regarding individuals labor force participation, migration, civic engagement, and other questions.
3.4 American Community Survey/Census
The United States Census is conducted every 10 years, but the Census Bureau manages many other projects. In particular, the American Community Survey, which has partially replaced the traditional census, is conducted every year producing more timely information about the American population.
The necessity of the US Census is actually created by the Constitution, where Article I, Section 2 states: “Representatives and direct Taxes shall be apportioned among the several States… according to their respective Numbers… The actual Enumeration shall be made within three years after the first meeting of the Congress of the United States, and within every subsequent Term of ten Years”.[a][1] Section 2 of the 14th Amendment amended Article I, Section 2 to include that the “respective Numbers” of the “several States” will be determined by "counting the whole number of persons in each State, in part to clean up some racist issues with how the US Constitution determined who was a human being.
So the direct purpose of the US Census is to figure out how many people there are so that we can figure out how many representatives each state gets in Congress, etc. But the program has expanded over the years to encompass the collection of a great deal more information.
From the modern census we can get information on individuals education, income, family structure, migration, living conditions, and more. The actual Census that everyone fills out every 10 years only asks a small number of questions, but the Bureau has long used what’s called the “long form” to collect more in-depth information that might be of use to government departments, politicians and academics.
All of that data is collected and kept confidential, but we can still use the data with some limitations. The great news about using the Census is the size and completeness – in general it is representative of the entire United States. And for a given year, like 2019, you can get over 3 million responses; it would take a long time to get that many surveys if you were running a program. For point of reference, the GSS is generally given to 3,000 people each year its run (and has only had 61000 total responses since it began in 1972).
Census data is a great place to start on data collection, but it’s rarely a place to end. It’s the go-to source for information about community demographics. Want to know what counties diversified the most racially over the last decade, or whether suburban counties in your state are getting richer or poorer? The Census is the place to go. But often, the Census is more of a side dish than the main course on a research project.
It’s incredibly common to be used as one source of data in a study, but rarely will you be able to produce something that’s interesting and novel only using the Census. More often, you’ll need to connect it to another data source to generate a research question. Let me explain what I mean, by briefly describing a few research projects I’ve done.
I used census data to understand whether new state level laws regarding immigration were associated with immigrants moving away (if the law was restrictive) or staying in place (if the law was supportive). The census asks people whether they moved between states in the last year so it was a great source, but it was only useful because I could connect it to a database of state immigration laws form the Urban Institute.
Or, I did a study of the affect building a minor league baseball stadium had on nearby home prices using census data. But the census doesn’t record whether there is a minor league baseball stadium in the same neighborhood, I had to build that list first using Wikipedia, and then by connecting it to the census geographies. But the census was the perfect source to understand neighborhood home prices and demographics across the country.
We can get individual level data from the Census, with a significant caveat. The Integrated Public Use Microdata Series IPUMS lists each individual observation collected as part of the Census or American Community Survey. However, to project the confidentiality of individuals you wont be able to view that data with very many different geographies. The most common unit that data is reported for is something called the Public Use Microdata Area (PUMA). Pumas don’t match perfectly to cities or counties. They’re artificial boundaries that group together roughly 100,000 respondents. You can aggregate them upwards (imperfectly) to metropolitan areas or states, but you can’t use them for smaller units.
3.5 NHGIS
We’ll discuss one final main source of data in this chapter, the National Historical Geographic Information System (NHGIS). The NHGIS provides census data that has been aggregated to several different units of observation. It doesn’t provide individual data, but it does provide data at the level of neighborhoods, cities, counties, MSAs, states, and for the nation. That data is available from every instance of the US Census, so from 1790 to the present, though it should be noted that the boundaries for many of those geographies have changed over time, so everything won’t be directly comparable that far back. If you’re interested in the characteristics of neighborhoods or changes within cities, the NHGIS is a great resource.
Let me talk in a bit more depth about neighborhoods, since this is the only data discussed that is available at units smaller than cities. By neighborhoods, what I really mean is census tracts. Census tracts are sub-city units drawn up by the Census Bureau to approximate neighborhoods. They average 10,000 residents so individuals inside of them aren’t identifiable (confidentiality is important), but they’re drawn to respect borders on neighborhoods as much as possible.
What might that look like in New Orleans?
library(rgdal)
coords <- readOGR(dsn="~/Dropbox/Papers/Finished/NOLAbnb/Data/Neighborhood Area Boundary", layer="geo_export_8202dcf9-8da3-4097-a3c5-d33c5874489e")
## OGR data source with driver: ESRI Shapefile
## Source: "/Users/evanholm/Dropbox/Papers/Finished/NOLAbnb/Data/Neighborhood Area Boundary", layer: "geo_export_8202dcf9-8da3-4097-a3c5-d33c5874489e"
## with 72 features
## It has 4 fields
We’ll talk more about what I did above in a later section. Are those a perfect approximation of neighborhoods as people understand them in their lived experiences? Probably not perfectly, but it’s as close as we can get with the data that is available. If you’re interested in trends or changes happening within cities or states, the NHGIS is the best source to use at present.
I’ll introduce a few more narrow data sources below, but for now let’s summarize the 4 resources described above.
Source | Units of Observation | Questions |
---|---|---|
GSS | Individual | Detailed and personal |
CPS | Individual, Metro, State | Somewhat detailed, demographics |
IPUMS USA | Individual, Metro, State | Demographics |
NHGIS | Census Tract, Census Block, County, City, Metro, State | Demographics |
3.6 Too Many Other Sources
Those are a few common data sources, and they can be even more powerful when combined with all of the other data that is available online. Below I quickly list a few of my favorites. This list will hopefully grow with time.
Data directly from cities like New Orleans. You can find a similar website for most major cities.
Data about the locations of Airbnb’s in selected cities.
Data on evictions for different units of observations for the entire nation.
Data detailed data on elections.
Data on nonprofit locations.