I have a series for GINI index which takes a value in the interval between 0 and 1. (This series is panel data.) I want to assign a dummy variable for this GINI variable as defined by
For example, if Gini takes any number in the interval between 0 and 0.35, then the new defined dummy variable (dg) takes 0, and the like. How can I define this dummy variable dg in stata?
I guess, I should use if command, but my stata command does not work.
For example, if Gini takes any number in the interval between 0 and 0.35, then the new defined dummy variable (dg) takes 0, and the like. How can I define this dummy variable dg in stata?
I guess, I should use if command, but my stata command does not work.
Comment