BookmarkSubscribeRSS Feed
milo922
Calcite | Level 5

Hello,

 

I am trying to probe a three way interaction between predictor variables. I used PROC mixed to estimate a three level HLM. I tried to use the lsestimate statement, but it only works if the variables are in the class statement. How would I go about probing a three way interaction with variables listed only in the model statement?

 

Thanks!

2 REPLIES 2
Rick_SAS
SAS Super FREQ

Is there a technical meaning of "probing interactions?"  Or do you just means that you want to understand the interactions?

 

If it is helpful, SAS provides various "slice" and "at" options that enable you to graphically display the predicted values at certain values of the explanatory variables. See the article "Use the EFFECTPLOT statement to visualize regression models in SAS."

SteveDenham
Jade | Level 19

Sometimes it is better to put variables into a CLASS statement when it may be the case that nonlinearities are hiding in there someplace.  For instance, suppose you had 3 levels of a treatment, plus a control, and for further fun, let's suppose that the treatment is a fertilizer and you are measuring plant growth.  Now suppose the response, in some units, are

 

Control        1

Low rate     1.5

Med rate     4

High rate     2

 

If you fit this as a continuous, linear response, you are going to miss the fact that the high dose actually brings down the response.  You can try quadratic and cubic functions, but it is just a lot easier to be semi-parametric, and look at this as a categorical variable.  Then with the LSMESTIMATE statement, you could fit polynomial coefficients, if that is what you are interested in.  It seems to me to be a lot easier to go that way.

 

Steve Denham

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 2 replies
  • 1538 views
  • 0 likes
  • 3 in conversation