Hi, I need a diagram to show covariance/correlation attributes of my bivariate data. My idea was a scatter plot which is proportional for both variables (1 unit on the x-axis has the same lengh as 1 unit on the y-axis) and contains a line for each mean and one for the regression line. This way the degree in which extreme values of x are associated with extreme values of y could be graphically assessed.
A scatter plot with a regression line is no problem in SAS but I couldn't find options to make the diagram proportional and to plot lines for the means.
What you need is what is known as an EQUATED container in GTL. SGPLOT scripts out the LAYOUT OVERLAY to create the graph. What you can do is use the TMPLOUT="filename" option on the SGPLOT statement to get the GTL Template scripted by SGPLOT. Edit this program, replace LAYOUT OVERLAY with LAYOUT OVERLAYEQUATED. Then, compile the template, and run proc SGRENDER with your data and this new template.
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.