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!
Related Posts with type mismatch error when using "replace" function
Error using esrefline in meta forestplot in Stata 16SEHi I get an error "option esrefline not allowed" "r(198)" using meta forestplot. I have Stata v16SE.…
Manipulating with string variablesHi all, I am using STATA 15.1 and I have a new problem and it is a challenge, at least for me if I …
How to count distinct observations by group?Dear experts, I have a dataset like below. I'd like to count distinct firm numbers by province. For…
Dummy variable value dependent on any of the 36 values in a string variableI am a beginner in Stata (ver 16) and need help regarding dummy variable. There is a dummy variable…
Duncan Segregation Index with Aggregate DataI'd like to calculate the duncan index of segregation, for occupational gender segregation. In addit…
Subscribe to:
Post Comments (Atom)
0 Response to type mismatch error when using "replace" function
Post a Comment