Supporting R code for "Hepatitis B Birth Dose Effects on Childhood Immunization in the U.S." by DT Vader, BK Lee, and AA Evans. Code was run using the 2017 National Immunization Survey - Child public use data set, which can be downloaded at https://www.cdc.gov/vaccines/imz-managers/nis/datasets.html.