Hi Folks:
I'd like to describe the extent of inequality in health behavior in Korea using descriptive statistics.The variable is continuous and the data is attached to this post. I already mapped actual health behavior using proc gmap approach shown in the code below.
But, I also would like to map the standard deviation and inter-quartile difference of each observation (each district and 250 districts in total) of the variable using the same gmap approach. Since mapping IQR diff and STD maybe more meaningful than visualizing actual variable given the purpose is to show disparity in the spatial distribution of the variable.
Could you please help me compute inter-quartile difference and STD of the variable for each observation in the data?
I greatly appreciate any hints or suggestions.
Thanks in advance.
proc gmap data=have map=mapsgfk.south_korea;
id id;
choro health_behavior/ legend=legend1;
legend1 position=(bottom center inside) across=1 mode=reserve
label=(position=top j=c);
format std_health_behavior comma5.;
run;
quit;
IQR and STD are not record level data, they're aggregate statistics that represent a group of data not a single point.
Can you explain in more detail what you're looking for?
If you could provide your data as a data step that's appreciated as well.
Hi Reeza, thanks for asking. I'm trying to come up with a map presenting the inter-quintile differences in health behavior in 250 districts of Korea. Inter-quintile or standard deviation of each observation would present the gap in health behavior across the 245 districts.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.