Dear Statalisters,
this might be a rudimentary question:
I use the following code to generate mean for each industry and year combination,
bysort industryid year: egen mean_xvar=mean(xvar)
xvar is missing for a subset of my sample, I know the above statement still works,
is it correct to say that mean is generated without considering the missing observations?
Thanks
Rochelle
this might be a rudimentary question:
I use the following code to generate mean for each industry and year combination,
bysort industryid year: egen mean_xvar=mean(xvar)
xvar is missing for a subset of my sample, I know the above statement still works,
is it correct to say that mean is generated without considering the missing observations?
Thanks
Rochelle
Comment