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?
Related Posts with Plugging values of a variable back into Stata
Pooled olsHi all, I am trying to add corrections for year (year-count variable) and units (countries) when ru…
learning STATAHello All, I am a beginner and trying to learn STATA on my own, I have weak biostatistics background…
Firm and Industry Effects Together?Hi, In the context of corporate finance, some studies claim to use firm and industry fixed effects …
Propensity Score Matching: What should I expect from the results?Hi all, I am working on a probability model by utilising a panel probit regression. One of the inde…
Generate data with missing values and specific mean / standard deviationI generated a variable foo: Code: clear set obs 100 gen foo=rnormal(5,2) I then do the following…
Subscribe to:
Post Comments (Atom)
0 Response to Plugging values of a variable back into Stata
Post a Comment