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!
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.
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.