Hi, I am trying to plot a bar graph using variables averaged. My group variable is age cohorts in 5 years intervals. My averaged variable is hours worked by economists. When I do
by agecohort sort: egen avghours_males=mean(hours) if economist==1 & sex==1
I get the mean for those values that contain positive hours but exclude the 0 values. Is there any alternative to also include those who did work 0 hours or whose data is missing data?
Thanks
by agecohort sort: egen avghours_males=mean(hours) if economist==1 & sex==1
I get the mean for those values that contain positive hours but exclude the 0 values. Is there any alternative to also include those who did work 0 hours or whose data is missing data?
Thanks
Comment