Dear All,
I am trying to collapse my variable of interest by country and year. I have a dummy variable that takes a 1 if the variable of interest is grant and 0 if it's a credit. After collapsing data , the dummy variable gets values of 0.97 ... 0.5 .... . Is there a different way to keep values 0/1.
This is the code:
collapse (sum) Var of interest (mean) DummyVar, by(Year Country)
Many thanks,
Fairouz
I am trying to collapse my variable of interest by country and year. I have a dummy variable that takes a 1 if the variable of interest is grant and 0 if it's a credit. After collapsing data , the dummy variable gets values of 0.97 ... 0.5 .... . Is there a different way to keep values 0/1.
This is the code:
collapse (sum) Var of interest (mean) DummyVar, by(Year Country)
Many thanks,
Fairouz
Comment