Dear Stata users,
I am using a panel data consisting of 352 municipalities for 2000-2020 and would like to drop a city if it has a missing value for the independent variable house price. So that would mean multiple cities in one command to be removed.
What I have done so far is to see which cities have missing values for houseprice variable by using
This way i know which cities have missing values now that I know which cities they are I have to drop these cities in one command .
I have tried this command:
no luck so far
I am using a panel data consisting of 352 municipalities for 2000-2020 and would like to drop a city if it has a missing value for the independent variable house price. So that would mean multiple cities in one command to be removed.
What I have done so far is to see which cities have missing values for houseprice variable by using
Code:
br GM_code log_realHP if log_realHP==.
I have tried this command:
Code:
drop GM_code if GM_code==14 22 28 31 36 37 44 53 64 66 68 76 86 90 92 102 106 109 113 137 143 144 145 148 153 158 160 166 167 171 173 175 182 187 190 192 195 196 199 205 206 216 219 221 228 231 233 235 246 254 260 262 264 267 273 275 276 280 282 285 293 304 312 321 323 326 327 332 347 350
Comment