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
Chow test of Structural BreakDear Statalist members, Can Chow test be performed on panel data with only one variable? I would li…
Steady state for ARIMA modelsHi, I need to test the hypothesis that fixed effects in my model do not correlate with deviations f…
use dataI know it is a question that must be easy for you to answer but this is my first ever assignment wit…
Create rank depending on 2 variablesHey Stata Community! I have a question concerning generating a new variable. My dataset looks like…
Destring selected variables ending with a number suffixHello everyone, I have a rather simple question and was wondering if someone can help me with it. …
Subscribe to:
Post Comments (Atom)
0 Response to Colour Coding Markers In a Weighted Scatter Plot
Post a Comment