Hello everyone,
I have a panel data of N countries and X years. I want to drop only the observations for variable Var1 in year 1997 for all countries.
Using
- drop Var1 -> i can drop the whole variable for all years and countries
- drop if year==1997 -> drop all observations for all variables if year is 1997
I tried "drop Var1 if year==1997" and got an error: "=exp not allowed".
Any suggestion or workaround?
Thanks!
I have a panel data of N countries and X years. I want to drop only the observations for variable Var1 in year 1997 for all countries.
Using
- drop Var1 -> i can drop the whole variable for all years and countries
- drop if year==1997 -> drop all observations for all variables if year is 1997
I tried "drop Var1 if year==1997" and got an error: "=exp not allowed".
Any suggestion or workaround?
Thanks!
Comment