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 ??????????..
Related Posts with Can I overlay frequency bar and proportion line graph ?
keep observations between the same rangeHi statalists, I have two variables, period and company. Period is the accumulative number of quart…
Using MatchitHi, I'm trying to merge two datasets based on a string variable; but the string variables don't matc…
margins in spatial panel data analysisHi, I have a problem using margins after the Spatial-AutoRegressive model, using xsmle. First I run…
Reshape long (date; price_68372V; price_138056) Code: * Example generated by -dataex-. To install: ssc install dataex clear input float date doubl…
Help with analyzing survey data for presidential electionHello everyone, I am almost new to Stata and am trying to find the right model to fit my data which …
Subscribe to:
Post Comments (Atom)
0 Response to Can I overlay frequency bar and proportion line graph ?
Post a Comment