BookmarkSubscribeRSS Feed
PK247
Calcite | Level 5

Hi,

How can I incorporate an interaction between two continous variables in the proc mdc statement?

Thanks in advance!

1 REPLY 1
SteveDenham
Jade | Level 19

Use the DATA step to define an additional variable that is the product of your two continuous variables, and include that in the PROC MDC model statement.  This is the usual method for PROC REG.  I would suggest centering your continuous variables before carrying this out, in order to keep the design matrix from becoming ill conditioned.

 

Steve Denham

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

Register now

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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