RPubs will retire in June 2027. Your existing documents will stay accessible through December 31, 2031
and Connect Cloud is the recommended home for new publishing. Read the blog post
gravatar

michaeldgarber

Michael D. Garber

Recently Published

R for data wrangling 1: learning the ground rules of dplyr with publicly available COVID-19 data
This page has been moved to https://michaeldgarber.github.io/teach-r/index.html
R for data wrangling 2: more dplyr and some tidycensus, mapview, and ggplot
This page has been moved to https://michaeldgarber.github.io/teach-r/index.html
Geocoding with ggmap and tmap
This demo introduces geocoding in R using ggmap (via Google's API) and tmap (via OpenStreetMap's API) and includes examples of each.
Sampling 300 U.S. counties
An approach for sampling 300 U.S. counties.
Using R to gather bicycle infrastructure data from OpenStreetMap (part 2)
The goal of this demo series is to illustrate use of osmdata to download OpenStreetMap vector data, with a focus on gathering bicycle infrastructure in Atlanta. Part 1 went over conceptual aspects. This one covers R code.
IPTW to estimate effect of regimens
IPTW to estimate effect of regimens
Marginal Structural Models Example
The purpose of this demo is to show how to simulate a dataset with time-varying confounding and to apply a non-parametric marginal structural model to estimate the effect of the regimen on the outcome.
A simulation of IPTW: EPI 738 TA Session 2
The purpose of this demo is to show how IPTW can be used to correct for confounding. The dataset is simulated from a structural causal model consistent with a DAG.
R for GIS, Patzer Group Analytics Meeting
A demo on using R for GIS with data on dialysis facilities and transplant centers.
ATL Strava OD 2013-2014
Sampling places
Bike routes heatmap