Hello,
I am trying to screen out survey responses that are out-of-state using zip code. My plan was to make an indicator variable:
gen out_state_zip=1 if !inlist(zipcode, zip1, zip2,....ziplast)
Since there are so many zip codes (nearly a thousand) I got an error message stating "expression too long." Is there another method I could use to flag out of state zip codes?
My backup option will be to create a separate data set with Michigan zip codes, then do a many to 1 merge with my survey data set, and exclude surveys that don't have a zip code match.
Many thanks,
Alyssa
Related Posts with screen survey responses for state zip code
master dofile won't run through, despite the dofiles referred to do (if run manually)Hi guys. I wonder if somebody has experienced the following: A master dofile referring to several d…
Support of using Epi Week for Time Series AnalysisI converted a date variable into Epi Week / Morbidity that will used in Time Series analysis using e…
Making box plots more visibleHello I'm a stata newbie with several questions which I will be posting subsequently in this forum …
Code: Add Variable with Ideal lower and higher numerical values in Panel datasetHello, Could any one of your please help me with coding to add a new variable to the existing datas…
lpoly estimates for panel dataHello, I want to use the lpoly command to smoothen the outcome variable in a panel. The question i…
Subscribe to:
Post Comments (Atom)
0 Response to screen survey responses for state zip code
Post a Comment