I am trying to construct a binary variable.
This binary variable should take the value of 0 if the variable (TA hereafter) is inferior to zero more thant 3 years. Each TAN_X value correspond to a different year.
I think I should use the command count but I dont know how .
Does anyone know which code to use to do that ?
Thanks a lot
Najiba
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input byte(company TAN_1 TAN_2 TAN_3 TAN_4 TAN_5) 1 -1 2 -3 2 2 2 -1 -2 -3 -5 -6 3 -4 -4 -4 5 5 4 3 3 -2 2 2 end
0 Response to CREATE A BINARY VARIABLE IF A VARIABLE <0 ON SEVERAL YEARS
Post a Comment