Hello everyone,
I am having an issue. I have a dataset of around 500,000 obs from SOEP for the period 1990-2020. I have to do some descriptive analysis of the average annual working hours for the period of 1990-2020. I am looking at the overtime difference (trend) of annual working hours between East and West for women. The variable I have for annual working hours is for individuals, however I need the average. I tried to generate the average by using the egen command and bysorting by year and region and I created a twoway line graph based on the new variable that I generated. However, I need to include weights in this graph. Stata does not allow me to use weights when generating the new variable, and nothing changes in the graph when I include weights in the code for my graph. In other words, I need to look at the weighted average annual working hours for the period 1990-2020 in East and West for women.
I know there is another way to do this without generating a new variable which allows me to look at the average overtime and also allows me to include weights, but I cannot figure out the alternative.
Would appreciate any help.
I am having an issue. I have a dataset of around 500,000 obs from SOEP for the period 1990-2020. I have to do some descriptive analysis of the average annual working hours for the period of 1990-2020. I am looking at the overtime difference (trend) of annual working hours between East and West for women. The variable I have for annual working hours is for individuals, however I need the average. I tried to generate the average by using the egen command and bysorting by year and region and I created a twoway line graph based on the new variable that I generated. However, I need to include weights in this graph. Stata does not allow me to use weights when generating the new variable, and nothing changes in the graph when I include weights in the code for my graph. In other words, I need to look at the weighted average annual working hours for the period 1990-2020 in East and West for women.
I know there is another way to do this without generating a new variable which allows me to look at the average overtime and also allows me to include weights, but I cannot figure out the alternative.
Would appreciate any help.
Comment