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?
Error message r(699)Hi there, I'm trying to install factortest and sortl. It has worked previously, but now when I sear…
Help with xtreg, time fixed effects, local authority fixed effectsHi, I am new to Stata and therefore would appreciate some help with actually running my panel regres…
tsfill for time series data, ending fill at specific dates by subgroupsI have panel data, with an id variable, two time variables: t0 (first date); t1(end date), and a spe…
Cutting out the appropriate end of the variables Code: * Example generated by -dataex-. To install: ssc install dataex clear input float(quarter Dl…
nehurdle available on SSCHi everybody, I would like to announce that thanks to Kit Baum, nehurdle is now available at SSC. …
Subscribe to:
Post Comments (Atom)
0 Response to How to weight data using CPS weights in STATA?
Post a Comment