BookmarkSubscribeRSS Feed
berylsky1
Fluorite | Level 6

Hello SAS Community,

I am seeking guidance on how to graphically display a multiple linear regression line with a binary*continuous interaction using PROC SURVEYREG.

My model is as follows:

model continuous_outcome = predictor1 (continuous) + predictor2 (continuous) + predictor3 (continuous) + gender (binary)*predictor1 + genderpredictor2 + gender*predictor3 + covariates (continuous + categorical);

 

My goal is to create multiple graphs to visualize the main effects of the predictors and gender, as well as the interaction effects.

 

Unfortunately, I am currently unable to test the code myself as the SAS Studio is undergoing scheduled maintenance.

 

If anyone has experience with this type of analysis and graphing approach, I would greatly appreciate if you could share helpful links, code snippets, or any guidance that could assist me in achieving this visualization.

 

Any insights or recommendations would be invaluable in helping me effectively present and interpret the results from this moderated regression analysis.

 

Thank you in advance for your assistance!

1 REPLY 1
cici0017
SAS Employee

It looks to me you should use PROC MIXED/PROC GLIMMIX for your model instead of PROC SURVEYREG. See the examples here -

https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.3/statug/statug_mixed_examples08.htm

 

If you can post your code here, we could take a further look.

 

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 742 views
  • 0 likes
  • 2 in conversation