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
An empirical question of multilevel models; and how to buid a graph like this one in StataDear Statalist, I am using Stata 15.1 and I am estimating a three level model (time nested in firms…
Chi-square-Tests: adjusted residuals vs. standardized residualsDear Statalisters, I performed a Chi-square test (see code below), which was not significant with m…
Interpretation of a Relative Risk Ratio in the case of a continuous variable (in log)?Hello everyone I am conducting a mlogit regression with three possible outcomes (the first one bei…
xtgraphGood morning, I use this command. I would like to ask you how can I chiange the colours of the line…
Counting and categorizing the number of adults in the household using survey dataGood day, I am interested in counting and categorizing the number of adults in the household into t…
Subscribe to:
Post Comments (Atom)
0 Response to Colour Coding Markers In a Weighted Scatter Plot
Post a Comment