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?
Problem with exporter-importer dataset (from Cepii's TRADHIST database)Good morning, I am working with TRADHIST data on Stata 14, which collects data on bilateral trade b…
twostepweakiv with panel dataHello, I am running a GMM model using a continuously updated estimator on panel data. My main comman…
Drop all observations of a company if it does not meet the requirement at one point in timeHello, I am new to STATA and run into a problem with my dataset which contains companies stock info…
Weighted Geometric Mean-Cross-Sectional DatasetDear Scholars, I have household expenditure datasets and I am using Quadratic AIDS model to analyze…
Reshaping after matching firms with -rangejoin-Hi I am aware there are other posts around using the -rangejoin- command and which discuss reshaping…
Subscribe to:
Post Comments (Atom)
0 Response to Deleting number of observations below 3 in histogram?
Post a Comment