Hello,
I have CPS monthly data 2015-present. I want to calculate unemployment rate. I am using empstat and labforce variables from the CPS. I am also using wtfinl as the weights for the data.
My question is how to calculate the weighted unemployment rate using this data? I was able to calculate the unweighted rate using
gen unemployed = (empstat==21)+(empstat==22)
gen lf = labforce==2
gen unemp_rate = (unemployed==1)/(lf==1)
When I multiplied unemployment_rate by the wtfinl variable, I got very large unemployment rate. I do not know what am I doing wrong? How to weight the unemployment rate?
Also, a very stupid question, my data is individual level. How can I aggregate the weighted unemployment rate into a table of (year - month - weighted unemployment rate)? I mean I do not know how to report the weighted unemployment rate for each month of my period (2015-present).
Thanks
Related Posts with How to weight data using CPS weights in STATA?
Post-test estimations with imputed data using stcrregDear all, I am using Fine & Gray proportional subhazard models to calculate the effect of some …
Local Average Treatment Effect after BiprobitHi all, I would like to know how to compute LATE after a biprobit model with endogenous binary regr…
How to group time datahello I need your help if I want to organize my data and group it by week. for example, I want to ca…
Clustered standard errors.This is a conceptual question; I'm struggling to decide whether I should cluster my standard errors.…
Multiplying freq by another variable.How many | cars do | you own?|| Freq. Percent Cum. ------------+----------------------------------- …
Subscribe to:
Post Comments (Atom)
0 Response to How to weight data using CPS weights in STATA?
Post a Comment