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 2025: Call for Content

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!

Submit your idea!

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
  • 648 views
  • 0 likes
  • 2 in conversation