Hi - I can specify a full factorial model with factors A, B, C and D in PROC GLM, PROC GLMSELECT etc using notation like this: A | B | C | D. But can I tell the procedure that I only want to include interactions of A, B, C and D upto and including the second order? Obviously I could write them all out in full (A*B A*C A*D B*C etc), but I'm guessing there's probably an easier way. Is there?
Many thanks.
There sure is. For your situation, use A|B|C|D@2. This will give a model with main effects and all two way interactions. In the documenation for GLM, look at Example 42.11 Analysis of a Screening Design, where they present a four factor model, and fit main effects and the two way interactions.
Steve Denham
There sure is. For your situation, use A|B|C|D@2. This will give a model with main effects and all two way interactions. In the documenation for GLM, look at Example 42.11 Analysis of a Screening Design, where they present a four factor model, and fit main effects and the two way interactions.
Steve Denham
Perfect - just what I needed.
Many thanks!
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.