Statistical Procedures

Programming the statistical procedures from SAS
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-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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
  • 1982 views
  • 0 likes
  • 3 in conversation