Hi,

How can I delete the bars in the histogram if there is less or equal to 3 observations?
The histogram should show the age of mothers and fathers when giving birth, but I cannot plot the age if there is less than 3 observations (as this is individual specific data). I have a panel dataset.

My code is as follows:

twoway (hist age if id!=L.id & gender==1, discrete) ///
(hist age if id!=L.id & gender==2, discrete) ///
xtitle("Age") title("Panel A. Age of mothers and fathers at childbirth") ///
legend(rows(1) order(1 "Male" 2 "Femlae")) ///
ylabel( ,grid) ///
noout ///


This gives me the bug: "option noout not allowed".

Many thanks!
Best,
Natasha