Skip to content

Instantly share code, notes, and snippets.

@stevenae
Last active January 1, 2016 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevenae/8186962 to your computer and use it in GitHub Desktop.
Save stevenae/8186962 to your computer and use it in GitHub Desktop.
CensusMatchR running code
ZipDir <- "/small_zip_files/"
StatesDir <- "~/by_state_hh/"
StateFipsFile <- "~/state_fips.csv"
PumaCodeMapFile <- "~/new_puma.csv"
RegionFilenames <- c("ss10hil.csv") # you may specify multiple states
RegionPumas <- seq(03501, 03519, 1)
MatchVars <- c("HINCP","NOC","TEN","BLD")
Matches <- RunModel(1000) # use lower sample size to test, higher for greater accuracy
ZipCodes <- MatchesToZips(Matches)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment