Recently Published
Internet and computer access in Tennessee among people under 18, 2018-2022
Source: 2022 Five-Year American Community Survey.
Data Visualization Exercise
An exercise to evaluate your ability to produce basic data visualizations in R.
Intro to data visualization in R
An introduction to data visualization in R.
Demo: Multiple regression with an interaction
A demonstration of multiple regression with an interaction, calculated in R
Document
Demo script for generating descriptives and selected graphs.
Trump Biden Coverage Comparison
A quick R script for using GDELT data to compare Trump and Biden coverage volume between two user-customizable dates.
Division-level population change in the 901 area code, 2016-2021
An R script for calculating and mapping division-level population change in the 901 area code (Memphis, Tennessee, with Tipton and Fayette counties), according to the five-year American Community Survey datasets for 2016 and 2021.
R Data Analysis Guide
his guide can help you decide which statistical procedure to use when your analysis involves one dependent variable and one independent variable, as long as you know which variable is which, and whether each variable is measured categorically or continuously. Once you have settled on a procedure, click the procedure to jump to some code that you can copy into R and run after modifying it to specify the names of the data file and variables involved. You’ll also find links to worked examples for each procedure.
Population change in the Nashville area, 2016-2021
Source: American Community Survey county-subdivision-level population estimates, U.S. Census Bureau.
Nashville-area population change by district, 2016 to 2021
Source: 2016 and 2021 Five-Year American Community Surveys.
Mapping Small-Area Fair Market Rent
Map Small-Area Fair Market Rent estimates from HUD for a set of user-specified ZIP codes.
Small-Area Fair Market Rent Map
Retrieves and maps small-area fair market rent estimates from the U.S. Department of Housing and Urban Development for a user-specified list of ZIP codes and for a user-specified year.
R Data Analysis Guide
A quick guide to computing selected inferential statistics in R.
Wrangling and mapping National Bridge Inventory data with R
This R script will retrieve all 2022 National Bridge Inventory data for Tennessee, filter for bridges in Rutherford County, Tennessee, pare the data to 14 key variables, save the pared dataset locally as a .csv file, then map all bridges in the filtered, pared dataset that have a rating of “Poor.” The script can be modified to work with data from other counties in other states.
Rutherford County 2021 Median Gross Rent by County Subdivision
Source: 2017-2021 American Community Survey data.
SEC R Workshop Basics
SEC R Workshop Basics.
GDELT Headline Scrape
GDELT Headline Scrape
Census County Division Slider Map
Use this R script to specify a U.S. county and two mutually exclusive five-year time periods, then extract and map county-division-level variable estimates and error margins for the specified county and time periods from the U.S. Census Bureau API. The script will produce a “slider map” that allows a user to compared data for the two time periods by pulling a horizontal slider bar across the map.
RuCoPopChange
Tract-level population shifts in Rutherford County, Tennessee, 2016 and 2021 5-year ACS.
TF-IDF analysis demo
Demonstration of how to calculate TF-IDF scores for tokenized Twitter content.
RTweet timeline scrape demo
A demonstration of how to scrape a Twitter user timeline using the RTweet package.
Nashville crime map
A map of reported crimes in Metro Nashville, Tennessee, pulled from the Nashville Open Data Portal, https://data.nashville.gov/Police/Metro-Nashville-Police-Department-Incidents/2u6v-ujjs.
Document
An R script for extracting, analyzing, and graphing county-level median rent estimates from the single-year American Community Survey for counties contiguous to Davidson County, Tennessee.
Document
Plotting coverage of "Trump" and "Biden" using GDELT 2.0 API data.
HTML
Draft Figure 5
HTML
Draft Figure 4
HTML
Draft Figure 3
HTML
Draft Figure 2
Using RTweet
Three distinct, but complementary, R scripts for retrieving and analyzing Twitter content using RTweet version 1.02.
HTML
Average weekly COVID-positive patients at Rutherford St. Thomas Hospital, Murfreesboro, Tennessee.
Peloton volume, Jan. 1 2020 to May 15, 2022
Daily volume of articles mentioning "Peloton," Jan. 1, 2020 to May 15, 2022.
Test of Nashville crime map
Demo of a Nashville crime map using recent crime data.
Test of Nashville crime map
A test map using recent Nashville crime data.