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 ?
ordinal regression with interaction term (ordinal and binary variable)How can I interpret this outcome and especially the interaction term? repression (0= minamal, 1= mo…
Export to excelHello!! I am trying to export summary statistics like n mean sd median iqr min max for a series of …
Interpretation of regression results of capital flowsDear statalisters, I have run three similar regressions of this model: lnGCFGDPit= ß0+ ß1newdealit…
Adding customized rows to existing observationsHi everyone, I have two clubs (Kibila & GAF 2) in my dataset each having 73 and 75 observations…
Stata states varlist not allowed with Coefplot CommandI am a new user to Stata. I am working on a dataset from an experiment that looked at how male and f…
Subscribe to:
Post Comments (Atom)
0 Response to Can I overlay frequency bar and proportion line graph ?
Post a Comment