Geocorr 2022 Help
Revised April 21, 2022
Background and Overview
What Geocorr Does
The Geocorr (geographic correspondence engine) application generates files and/or reports — called correlation lists — showing relationships between two or more geographic coverages in the United States.
For example, suppose you have county-level data for California and would like to convert that data to the ZIP code level. Geocorr can show how each county relates to the ZIP code(s) that intersect it. It can tell you, for each of those ZIP/county intersections, what the size of that intersection is and what portion of the ZIP's total population is in that intersection.
Geocorr allows comparing many geography types, including most geographies reported in decennial censuses and the American Community Survey (ACS). It also includes several special coverages, such as hospital areas and several Missouri-only government district types. You may specify or filter the geographic scope of the results — typically, one or more states, or specific counties, cities, or metropolitan areas within those states.
Geocorr returns its output as a CSV file by default. HTML (web page) reporting is also available, but may not be practical for large result sets.
What is a Correlation List?
The output files created by this application are called correlation lists, sometimes called equivalency files, crosswalks, or geographic correspondence files.
A correlation list consists of four important variables:
- Each source geocode from the geographic coverage to be correlated. This is the "known" geographic coverage.
- Each target geocode from the geographic coverage to which we want to relate the source areas.
- For each combination of source and target geocode, a variable (typically population) that shows the absolute "size" of the correspondence.
- For each combination of source and target geocode, a variable called AFACT (allocation factor) that shows what portion of the source area is located within the target area.
Using the California example above (county-to-ZIP correlation), the source coverage is counties, the target coverage is ZIP codes, and the resulting correlation list might (partially) look like this:
| County | ZIP | ZIP name | Population (2020) | County-to-ZIP allocation factor |
|---|---|---|---|---|
| Colusa CA | 95645 | Knights Landing, CA | 105 | 0.0048 |
| 95912 | Arbuckle, CA | 4942 | 0.2263 | |
| 95932 | Colusa, CA | 7832 | 0.3586 | |
| 95950 | Grimes, CA | 413 | 0.0189 | |
| 95955 | Maxwell, CA | 1403 | 0.0642 | |
| 95957 | Meridian, CA | 14 | 0.0006 | |
| 95970 | Princeton, CA | 341 | 0.0156 | |
| 95979 | Stonyford, CA | 519 | 0.0238 | |
| 95987 | Williams, CA | 6270 | 0.2871 |
This output shows that there are nine ZIPs that cover Colusa County, CA. The population of each ZIP within Colusa County is also shown, e.g. 105 for ZIP 95645 (Knights Landing). The allocation factor column shows the portion of the county's population that is within each ZIP, e.g. Knights Landing makes up 0.0048 (or 0.48%) of the population of Colusa County. Similarly, ZIP 95912 (Arbuckle) comprises 0.2263 (22.63%) of Colusa County.
The sum of the allocation factors for all target geographies within one source geography should always add up to 1 (100%), although in practice, there are usually small rounding errors.
Geocorr's correlation lists are sorted first by the source geocodes and then by the target geocodes within the source codes. There is an option to override this default.
What is MABLE?
Geocorr uses a database called MABLE (for Master Area Block-Level Equivalency) to create the correlation lists. "Block" refers to census blocks — the smallest geographic units used in tabulating the decennial census. Blocks are Geocorr's base unit because the Census Bureau uses them as the "atomic unit" for all other census-based geographies since 1990. Thus, census blocks will never cross boundaries of larger geographic units. The MABLE database is actually a collection of 51 state-level datasets containing about seven million block entries.
Using Geocorr
Input Options
These options control the basic elements of the correlation list. Here you specify the states, the source and target areas, and the weighting variable. Most items have default values.
Selecting State(s)
Click on one or more state names in this select box to indicate the state or states that you wish to process. You must specify at least one state, or the application will not run.
Source Geocodes
Select one or more geography types you want to use for the source portion of the correlation list. The output will normally be sorted by the values of these codes. Certain geography types occur in a hierarchy, so that selecting them automatically triggers selection of a higher-level qualifying variable; for example, tract implies county. State is often added to the output file as an extra ID variable.
Most codes are FIPS (Federal Information Processing Standard) if defined, or census codes otherwise. Be sure you understand that selecting multiple source geocodes means that the source areas are the intersection areas formed by looking at values for all the source codes. Thus, if you select county, MCD, and ZIP for the source geocodes, then the source areas represented on the resulting correlation lists are formed by the intersection of these three area types (i.e., a portion of a ZIP code within an MCD within a county). If what you actually want is a correlation list for MCDs and a (separate) correlation list for ZIP codes, then you need to invoke the application twice; Geocorr creates only one list per run.
Target Geocodes
Most of what was said for the source geocodes, above, apply equally to the target geocodes. Do not select the same geocode in both lists. The codes you select here define an area formed by the intersection of those areas. The correlation list defines the relationship of the source codes to these target areas.
Weighting Variable
Select a variable to be used to measure the "size" of the intersection between the source and target geocodes on the output file. By default, Geocorr will use the 2020 decennial population. On the output, this variable will contain the sum for all the blocks used in creating the output record.
Ignore Blocks with Zero Value for the Weighting Variable
There are many census blocks that occupy space but have no population. When building a correlation list with population as the weighting variable, you may find that leaving these blocks in results in output lines showing a correspondence that has a value of zero for the population and allocation factor variables. This indicates some spatial overlap between the areas, but no population in that overlap. By default, those lines with zero values for the weight variable will not be present on your output. Uncheck this box to show all lines, including zero values.
Output Options
These options specify details about Geocorr's output. In most cases, you should accept all defaults for these options.
Generate a Data File
Use this option (selected by default) to get a file you can use with Excel or other software package. This file includes the variable names as values in the first line (the header record). You may select a comma-separated (.csv) file format or tab-delimited (.tab).
Generate a Report
This option will result in a nicely formatted version of your output. Format choices are HTML (web page), PDF, or text-only. Source geocodes will always appear first (leftmost) on the report, and consecutive duplicate values of the source geocodes will be blanked out to emphasize breaks in the value of the source codes. Note: Processing time will be much longer if you select this option, especially if you also select many states.
Title for Output Report
Enter your own title, if you like.
Generate Second Allocation Factor (AFACT2)
The standard Geocorr output includes a single AFACT allocation factor variable, indicating the decimal portion of the source geocodes contained within the target geocodes. It may also be useful to know how this works going in the other direction, i.e., to know what portion of the target area (the complete target area, not just the part within the source area) is contained in the source geocodes. Selecting this option causes Geocorr to create such a dual-factored list. The best way to see how it works is to select the option once and study the AFACT2 values.
Sort by Target Geocodes, Then Source Geocodes
Normally the Geocorr sorts the output file by the source geocodes, then by the target geocodes within the source. This option lets you override the default and have Geocorr sort by the target codes first.
Calculate Weighted Centroids
Each of the census block entries in the MABLE database has a pair of latitude/longitude coordinates for an internal point of the census block. If you select this option, Geocorr will keep these coordinate values, and as it processes the blocks within the source/target geocode groups, it takes a weighted average of their values (using the weight variable specified in the Input Options section — usually population). The result is that on the output files, you will have two extra columns of data: INTPTLNG and INTPTLAT. They will be in degrees, with up to six digits after the decimal point kept. West longitude is assumed — no minus signs.
Geographic Filtering Options
These options limit the set of blocks that Geocorr processes by specifying lists of county, place, or metro-area codes to use as filters. Separate multiple codes with blank spaces, and specify leading zeroes in all codes.
County Code Filter
To limit the universe to one or more counties, enter their FIPS codes in this box. Enter full five-digit codes when processing multiple states; three-digit codes are OK if you selected only a single state for processing. Specifying a code for a state that was not selected will cause an error. If you need to look up a county code, click on the "County codes" link.
Metro Area (CBSA) Code Filter
Enter five-digit core-based statistical area codes here to filter on metropolitan or micropolitan statistical areas. Use the geographic codes lookup web app to find metro codes.
Place Code Filter
Enter seven-digit FIPS place codes with leading zeroes. You may enter five-digit codes if you selected only one state. Output will be limited to the official city limits of these cities.
Combining Geographic Filters
By default, Geocorr will combine all filters in this section and keep only those areas that satisfy all criteria (AND). You may override this default and choose geographies that satisfy any of your filtering criteria (OR). The OR option specifies that if multiple types of geocodes are used to filter, they each should be considered as sufficient rather than necessary conditions for inclusion.
Point and Distance Options
Geocorr permits the selection of geography based on geographic coordinates. Specifically, Geocorr can filter blocks by using their internal point coordinates to determine their location. You can specify this filter based on a specified point and a radius about that point.
Coordinates of Central Point
Enter values for a central point location (as decimal degrees of longitude and latitude) to have Geocorr calculate the distance between that point and the internal point of each census block that is otherwise selected for processing (i.e., that first passes the other geographic filters mentioned above). The variable distance will be added to the output. The distance is that between the weighted centroid of each target area and the location specified in the point coordinates here.
Geocorr assumes west longitude and a leading minus sign is optional. Longitudes on output files are also expressed as positive values for west longitudes.
You cannot enter just one of the coordinate values — if you specify a longitude value then you must specify a latitude value as well.
Radius of Circle
Enter a radius here to filter the selected blocks by distance from the central point. Select miles (default) or kilometers as distance units.
Label for Point
Use this optional box to enter a descriptive label for the center point. This label appears on the output as part of the descriptive label for the distance variable.
Accessing the Output
The Geocorr application stores output files in a temporary directory; they will remain there for a period of several hours or so.
The Query Output Page
This page gives a very brief summary of what you requested and a little about what the program did to satisfy the request. It tells you how many census blocks were selected for processing and how many lines (records, observations) actually made it to the output files. If you have any problems with your request, make a note of the job ID code and report it to the authors with a description of what went wrong.
How Does Geocorr Work?
The actual processing is fairly simple. Once you determine the geographic universe that the user specifies as well as the source and target geocodes and weighting variable, Geocorr extracts these items from the appropriate entries in the MABLE database. This yields a set of census blocks for the geographic area specified, each one identified by the source and target geocodes and with a measure of its size (population, land area, or number of housing units). Building the correlation list outputs (report and/or CSV file) is a relatively simple process of sorting and aggregating. What this amounts to is using the census blocks as a kind of "geographic pixel," or indivisible geographic unit. All correlations are rounded off to the census block level. For a majority of the geographic codes, the roundoff error is zero, since most of them are never split by blocks. The resulting file is similar to what you might get from a GIS by doing a polygon intersection operation. But it goes much faster, because we have already determined all the spatial correspondences and stored the results in MABLE. All we need to do is pull out the subset of the approximately seven million predefined answers and aggregate them.
The Geocorr application was written in SAS. The MABLE database is a series of SAS datasets and views with auxiliary tables (SAS format codes), which are used to look up some of the codes during Geocorr processing. Most of the SAS code (and all of the dababase design) was done by John Blodgett of the Urban Information Center, University of Missouri St. Louis, under a contract with SEDAC/CIESIN. Glenn Rice of MCDC created the HTML design and additional coding for Geocorr 2022.
