LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (August 2009, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Sun, 9 Aug 2009 13:22:56 -0700
Reply-To:   Daniel Nordlund <djnordlund@VERIZON.NET>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Daniel Nordlund <djnordlund@VERIZON.NET>
Subject:   Re: Proc GLM and Categorical variables
In-Reply-To:   <39285.8988.qm@web24303.mail.ird.yahoo.com>
Content-type:   text/plain; charset=utf-8

> -----Original Message----- > From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On > Behalf Of Orin Richards > Sent: Sunday, August 09, 2009 12:42 PM > To: SAS-L@LISTSERV.UGA.EDU > Subject: Proc GLM and Categorical variables > > Hi All, > I am using PROC GLM to do some analysis on age and treatment > (treat). Now treat is my categorical variable and age my > continuous variable. The categorical variable treat has the > followin levels high, low and control. By default PROC GLM > uses alphabethical ordering to determine the reference > category, therefore in my case "low" is the reference > category. I would like to know if there is a way to tell > PROC GLM to use" control" as the reference category. I can > create a new treatrment variable give the the appropriate > names so that "control" is the reference category. I would > however like to know if PROC GLM has an option that allows > you tell it what you would like the reference category to be. > > Thanks > > Orin

You don't don’t show your code , or example data, but you should be able to use ref='control' on the class statement. Something like

proc glm data=have; class treat(ref='control'); model y = treat / solution; quit;

Hope this is helpful,

Dan

Daniel Nordlund Bothell, WA USA


Back to: Top of message | Previous page | Main SAS-L page