Guys, I am trrying to do a logistic regression similar to:
proc logistic data="c:\data\binary" descending;
class rank / param=ref ;
model admit = gre gpa rank;
run;
Problem is, I have hundreds of variables in my dataset. Is there a way to not have to type them all out?
On possibility is to use the "--" notation to get a number of variables that are adjacent in the dataset (do a PROC CONTENTS with the POSITION option to see the order). If you have variables
a b c ...x y z
then you can reference all 26 as a--z
Doc Muhlbaier
Duke
Thanks Doc, but no such luck here...all are differently named..but I will see what the positions are..
- ritam, just to clear things up
the names of the variables actually dont matter. by using the "--" notation you are including everything from the var_1-var_n
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.