Hi Stata people;
This is the data that i'am working on:
As you can see, I have a time variable called "period" with a "-" between years that is stoping me from considering that variable as a time variable, so it needs some fixing.
Also, the two variables "pretaxation" and "g" are percentage variables that are defined using the "%" symbol, which is making Stata treat those as string forms, yet I want those variables to be treated as numerican variable for my goal.
Any help on how to fix all these issues?
Thanks!
This is the data that i'am working on:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str9 period str4(rpretaxation g) "0-1000" "4,5%" "0,0%" "1000-1500" "4,5%" "0,1%" "1500-1700" "4,5%" "0,2%" "1700-1820" "5,1%" "0,5%" "1820-1913" "5,0%" "1,5%" "1913-1950" "5,1%" "1,8%" "1950-2012" "5,3%" "3,8%" "2012-2050" "4,3%" "3,3%" "2050-2100" "4,3%" "1,5%" end
Also, the two variables "pretaxation" and "g" are percentage variables that are defined using the "%" symbol, which is making Stata treat those as string forms, yet I want those variables to be treated as numerican variable for my goal.
Any help on how to fix all these issues?
Thanks!
Comment