This should be easy. I'm trying to make a Bland-Altman plot with a reference line at 0- but the reference line will show at the bottom, I need it centered on the y-axis.
proc sgplot data = EZ3;
refline 0 / axis =Y;
scatter y = difference x = average;
In all examples I'm seeing online this is the (basic) way to do it and the reference line will be centered at 0 on the Y-axis with code like this.
For reference, I created a "fake" dataset that is exactly 3 times higher than the original dataset, so what I am looking at looks like a regression line since the 0 is not centered on the y-axis.
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.