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
Related Posts with Deleting number of observations below 3 in histogram?
Error calculating margins after melogit (could not calculate numerical derivatives -- discontinuous region with missing values encountered)Hello all, I am having trouble calculating margins after running a melogit with 3 levels. The comma…
putexcelGood day to everybody, just a couple of quick questions concerning the putexcel command in Stata 16…
sem - visualizing interaction between latent variablesDear all, I would like to visualize a latent variable interaction after running sem in Stata 14. To…
Counting number of people by genderHi all, I am currently using Stata Version 14. In the sample data attached below, I have informatio…
merging data files to create a large panel data by VDS_Id and SUR_MON_YRhere is data below Code: * Example generated by -dataex-. To install: ssc install dataex clear inpu…
Subscribe to:
Post Comments (Atom)
0 Response to Deleting number of observations below 3 in histogram?
Post a Comment