I am trying to create a scatter plot of Disease Mortality (CD_Mortality) and Income (GDP) weighted by Health Expenditure (Health_Exp), I have being able to produce this using the following code:
twoway (scatter CD_Mortality GDP [aweight = Health_Exp], mcolor(navy8) msymbol(smcircle_hollow))
Array
I want to colour code each country with respect to their WHO region indicator (WHO_IND), however if I separate CD_Mortality into the regions and plot using the twoway scatter function it will weight each category individually (See attachment). Is there a way for the marker colour to represent the WHO region and for the marker to be weighted across all observations not just its WHO region. Thank you for your time. (Using STATA 16)
Array
Related Posts with Colour Coding Markers In a Weighted Scatter Plot
Creating a categorical variable from multiple numeric variablesI apologize if this is duplicative inquiry. I am working with the 2017-2018 Area Health Resource Fil…
fmlogit aweights not workingCan anyone help with why fmlogit does not accept aweights? I am running a very basic regression on …
synthhi all, i need help , iam using a synthetic control group , for a policy inversion for five cases(co…
Merging variable labels with label valuesHi, I was wondering if there is a way to merge the variable names (labels) in the first column with …
Use proportions for randomtag instead of countHi all, do anybody have a clue if there have been an update on "randomtag" to use proportions?. It w…
Subscribe to:
Post Comments (Atom)
0 Response to Colour Coding Markers In a Weighted Scatter Plot
Post a Comment