I wanted to create this nice graph created by @Jay54 as shown on these links:
I have a data of patients who visit a certain clinic, I will like to display this just like in the links above but vice-versa. This means in my case they are moving from their residents to the clinic.
I tried using the method @Jay54 used but I still need some help
data patientflow; input From $18. To $8. LinkCount ; datalines; AAAAAAAAAAAAAAAAA clinic 11 BBBBBBBBBBBBBBB clinic 5 DDDDDDDDDDDD clinic 30 EEEEEEEEEEEEEEEEE clinic 2 FFFFFFFFFFFFF clinic 7 GGGGGGGGGGGGGG clinic 2 HHHHHHHHHHHHH clinic 11 IIIIIIIIIIIIIIII clinic 2 JJJJJJJJJJJJJJJJJ clinic 25 KKKKKKKKKKKKKKK clinic 2 LLLLLLLLLLLLLLL clinic 1 MMMMMMMMMMMM clinic 48 NNNNNNNNNNNNNN clinic 1 OOOOOO(clinic location) clinic 500 PPPPPPPPPPPPP clinic 1 QQQQQQQQQQQQQQ clinic 3 RRRRRRRRRRRRRRR clinic 1 SSSSSSSSSSSSSSSSS clinic 1 TTTTTTTTTTTTTT clinic 1 UUUUUUUUUUUUUUU clinic 3 VVVVVVVVVVVVV clinic 7 WWWWWWWWWW clinic 7 XXXXXXXXXXXXXXX clinic 165 ; run;
please note that OOOOOO is the region where the clinic is located that is the reason why the number of cases is in this region very high. The names of the regions are quite long and the arrows should be coming from the different regions and ending at OOOOOO
I will appreciate any help or an alternative solution. Thanks
For a Doctor/Patient type Provider network, another layout could be as shown in this post. Node locations are pre computed by some other means.
Or, sometimes I have seen simple vertical diagrams with Providers on left side and Consumers on right side with links.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.