Dear Stata Forum,
let's say I have state level employment data of 50 states for the years 2000 and 2020, and I want to determine the growth in the number of employed workers in all 49 states from 2000 to 2020 except the state of Washington normalized by the number of employed people in the state of Washington in 2000. I would like to do this for all states leaving out the state in the numerator I normalize with in the denominator. Basically, average growth in employment in states (-i) over 20 years normalized by initial employment numbers in state (i).
My data is in long format:
State.....................Year............Empl
i.............................2000..........
i.............................2020..........
j.............................2000..........
j.............................2020..........
k............................2000..........
k............................2020..........
I am not sure how I could code this and would once again highly appreciate your help.
Thank you very much,
Best wishes,
Nico
Related Posts with Change in the number of employed people in all states except for state i normalized by number of employed people in state i
How to export the freqs of multiple variables from stata to excelHello , I have been using tabout to output summaries for 2 X 2 tables quite well. Now a new need ha…
invalid syntax when referencing to variable labels in loopsI'm trying to refer to the labels of variables (to include these in graph titles) when looping on a …
Issues with inaccurate generate of a new variableHi there, I have recently used a very simple comand to generate a new variable. gen MFN_zero = Imp…
resetxt locks on small data setWhen I run: Code: resetxt esg totmktval, id(id) it(date) model(xtbe) I get: Code: ===============…
putting multiple graphs for quantitative vs categorical variables in one graphHi, I have 7 variables, which are actually for one survey question that asks respondents to rank th…
Subscribe to:
Post Comments (Atom)
0 Response to Change in the number of employed people in all states except for state i normalized by number of employed people in state i
Post a Comment