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 (October 2011, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 12 Oct 2011 09:56:13 -0400
Reply-To:     sm dong <sasdong18@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         sm dong <sasdong18@GMAIL.COM>
Subject:      question about contrast statement in proc logistic
Content-Type: text/plain; charset=ISO-8859-1

Hi:

I want to build a contrast statement in Proc Logistic. caseGrp has 3 levels, age_in_months has 6 levels, MedEnroll has 2 levels. I want to compare the caseGrp Level 1 vs. Level 3 within Age Level 1. But I don't know whether caseGrp*MedEnroll should also be added in the contrast statement. If I need to, how may I do that?

*

proc* *logistic* data=FinalData descending;

class casegrp (ref=last) MedEnroll(ref=first) sex_cd(ref=first) MSA

age_in_month(ref=first)/order=internal param=glm;

model H1N1BFFeb_fl = caseGrp MedEnroll age_in_month sex_cd MSA

caseGrp*age_in_month caseGrp*MedEnroll;

contrast 'caseGrp1 vs. caseGrp2 within Age1' caseGrp 1 -1 0

caseGrp*Age_in_months 1 0 0 0 0 0

-1 0 0 0 0 0

0 0 0 0 0 0/estimate=exp;

run;


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