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
Event Study Using earnings announcement dateI have a data that looks as follow . Post1 = 0 is collapsed mean of date -45 to -1 for the event dat…
Loop over *dta files to export to csv filesDear Stata users I have 132 *dta files (X1.dta to X132.dta) in the folder which must be exported to…
Runby for each firm_id and yearHi, I am trying to run a regression for each firm_id (gvkey) and year and store the estimated coeff…
Bayes Stochastic Frontier AnalysisDear all, Does anyone have the Stata command to do Bayes Stochastic Frontier Analysis(SFA)?In Stata …
use local in foreach commandDear All, I ran the following command Code: local in1 "inrange(year,2011,2012)" local in2 "inrange(…
Subscribe to:
Post Comments (Atom)
0 Response to Plugging values of a variable back into Stata
Post a Comment