Wednesday, January 1, 2020

type mismatch error when using "replace" function

Hi everyone,

I am using STATA version 14.0 and am hoping to replace missing observations using:
"replace state = . if state == -3 Missing geocode".
Unfortunately, I keep receiving the error "type mismatch". The variable I am working with is categorical and I need to ensure that I am not analyzing any data that is missing. Thank you!

No comments:

Post a Comment