Hi users.
I am using a variable called activity status which comes in codes such 11, 12, 21, 31, 41, 42, 51 and 81. The code 81 gives number of unemployed people, and the code 11 to 81 gives number of labour force. I want to calculate unemployment rate which is percentage of unemployed out of labour force. I want to calculate the unemployment rate and plug the values back into Stata in a variable say Unemployment rate.
How ca i write the function? Is there way to make it easy?
I am using a variable called activity status which comes in codes such 11, 12, 21, 31, 41, 42, 51 and 81. The code 81 gives number of unemployed people, and the code 11 to 81 gives number of labour force. I want to calculate unemployment rate which is percentage of unemployed out of labour force. I want to calculate the unemployment rate and plug the values back into Stata in a variable say Unemployment rate.
How ca i write the function? Is there way to make it easy?
Comment