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
Exporting Test Results to word from xttest0 and xttest3Dear all, may someone clarify, how I can export the results from xttest0 to word? If I write: xtre…
Endogeneity problemDear all, I need your help regarding endogeneity. I am running an OLS model like the following: D…
Controlled interrupted time series with count data using glm, panel data, and Newey-West standard errorsHi, I am trying to conduct an interrupted time series analysis with an intervention group and a con…
Problem with misspecificationHello All, Using a dataset of 600,000 observations and 60 variables I ran regress and then tested f…
Help with SFA - sfpanel model BC95Dear Stata users, I am working on "the trade potential between China and Central and Eastern Europe…
Subscribe to:
Post Comments (Atom)
0 Response to screen survey responses for state zip code
Post a Comment