Hi. Always thanks to statalist.

I have binary variable ; outcome (1: positive, 0: negative) and categorical variable grBMI

I want to make graph which include frequency and proportion of outcome over grBMI

Like below.

Array

I tried but encounterd difficulty .. could you fix my code...?

egen mean = mean(outcome), by(grBMI)
twoway connected mean grBMI , ytitle(Proportion outcome) sort || histogram ??????????..