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 ?
Dealing with (technical Stata) duplicates that are not real duplicatesHi, I imported data and merged it with other (pane)l data. Reshaping the data resulted in this mess…
Drop variables if no entry for monthly dates within a yearHello, I am new to Stata. Can you please help me with the following issue: for different companies,…
Error message "invalid 'Drive'" when using spwmatrixHi all, I am trying to import a Geoda-generated .gal file into Stata and export it as a .txt file. …
converting agregate data to individual data DAuid tot_pop tot_male 0_4male 5_9male 10_14male 15_19male 20_24male 25_29male 30_34male 35_3…
ZINB on pooled panelHello, I am running a ZINB on a pooled panel using the vce (cluster ID) option, yet I have been adv…
Subscribe to:
Post Comments (Atom)
0 Response to Can I overlay frequency bar and proportion line graph ?
Post a Comment