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
IVProbit postestimation testI am using MLE to estimate my IVProbit, which involves estimating a simultaneous system of equations…
Advice on coding for crude and standardised incidence rate estimationI recently completed analysis of a large dataset to generate age and sex stratified incident counts …
2SLS InterpretationHello everyone, I hope you are all well, I have an analysis based on the convergence growth model …
nlsur with linear functions is giving me different results from sureg, Is this a bug?Good afternoon, When I estimate linear seemingly unrelated regression through the nlsur, I expect t…
Percentage change of daily exchange rate dataHello everyone, I am writing my dissertation thesis on the impact of Brexit negotiations on the val…
Subscribe to:
Post Comments (Atom)
0 Response to screen survey responses for state zip code
Post a Comment