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 (July 2008, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 29 Jul 2008 12:30:50 -0500
Reply-To:   Warren Schlechte <Warren.Schlechte@TPWD.STATE.TX.US>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Warren Schlechte <Warren.Schlechte@TPWD.STATE.TX.US>
Subject:   Re: Estimate statement in proc mixed
Content-Type:   text/plain; charset="us-ascii"

I did not know this syntax was allowed.

Typically a "where" statement subsets the data. So I would expect that in this instance, you are only running the first analysis on the subset of data where dose in "A" or "B", whereas in the second, you're running the analysis on all the data.

Check your degrees of freedom to see if this is the case. If it is, then the SE for the latter analysis is based on many more data points, hence, tighter CI.

Warren Schlechte

-----Original Message----- From: Joakim Englund [mailto:joakim.englund@GMAIL.COM] Sent: Tuesday, July 29, 2008 11:52 AM Subject: Estimate statement in proc mixed

Hi,

I have run two types of proc mixed code. Variable 'Dose' has 10 levels.

*Alt 1:*

proc mixed data=mydata; class dose; model result = dose; where dose in ('A', 'B'); estimate 'B-A' dose -1 1 / cl; run;

*Alt 2:*

proc mixed data=mydata; class dose; model result = dose; estimate 'B-A' dose -1 1 0 0 0 0 0 0 0 0 / cl; run;

I thought both these methods tested B-A, but they do not give identical, albeit similar results I've discovered. The later one gives more narrow confidence limits and is coherent with the diffs option under the lsmeans statement.

Can anybody explain what the real difference is between the alternatives.

Kind Regards, Joakim


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