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 ?
Merging two datasets by different variable names (fuzzy match) - help with reclink and matchitHi, I am using two datasets with the aim to merge them according to the name of the place. The firs…
Omitted because of collinearityI am running a regression with 5 dummy variables and 6 non-dummy variables. One of the dummy variabl…
Generate random points around a centroid in circleHi everyone, I am struggling to generate random points around a fixed point (defined by latitude an…
Compute spatially weighted regressors using spregHello I´m trying calculate a spatial durbin model, however i can´t generate Spatially Weighted Regr…
Global Search Regression "__000006 not found"Dear statalisters, I'm usinsg Stata 14, and trying to use the command gsreg to select the variables…
Subscribe to:
Post Comments (Atom)
0 Response to Can I overlay frequency bar and proportion line graph ?
Post a Comment