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
Fixed Effects Regression - Specifying More Than One Time Fixed VariableHello, I am conducting a fixed effects regression on panel data of 17 countries within the Eurozone…
Removing note on the bottom-left of a FigureDear All, Suppose I run the code Code: sysuse auto, clear graph bar price, by(foreign) and obtain a…
Command "esttab": Adding more digits to odds ratio coefficientsHi, I'm working with logit model and OR to interpret results. After run regress one of the models s…
Likert scale outcome with a skewed distribution -- what should I do for a latent growth model?Dear Stata users, I am working with an outcome variable asked in a Likert scale, repeated measures f…
How to calculate bootstrap SE of the between-group difference in covariance (between two vars)Dear list, My example code is as follows: Code: webuse auto, clear forvalues i=1/50 { qui gen…
Subscribe to:
Post Comments (Atom)
0 Response to Plugging values of a variable back into Stata
Post a Comment