BookmarkSubscribeRSS Feed
Xamius32
Calcite | Level 5

     I seem to remember that there is a way to test all possible combinations of a model all in one statement.

so lets say

proc logistic data=x;

model y= a b c d e f;

run;

it would give you the results for:

a

b

c

d

e

f

ab

ac

etc....

Am I imagining things?

2 REPLIES 2
Rick_SAS
SAS Super FREQ

You can build a model with all interaction terms by using the "bar notation" such as

model y = a | b | c | d;

or restrict to only second order interactions with

model y = a | b | c | d @2;

See SAS/STAT(R) 9.3 User's Guide

As Data Null says, you can use variable selection to select a model that incorporates a subset of the terms listed on the model statement.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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