Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Re: Contrasts [Stata 9]

From   "FEIVESON, ALAN H. (AL) (JSC-SK) (NASA)" <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: RE: Re: Contrasts [Stata 9]
Date   Wed, 25 May 2005 11:12:37 -0500

Janet - You need two rows of C because you have a 2 df comparison - e.g. 1
vs 2 and 1 vs 3 (or equivalently 1 vs 2 and 2 vs 3 , etc). So what if you

Mat c=(1,-1,0,0,0,0 \ 1,0 -1,0,0,0) 


I can't check this since I don't have Stata 9 yet.

Al Feiveson

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Janet Rait
Sent: Wednesday, May 25, 2005 9:37 AM
To: [email protected]
Subject: st: Re: Contrasts [Stata 9]

Can somebody please put me out of my misery. I have a simple oneway anova
with 6 treatments. I can contrast any pair of treatments after anova using
mat c1=(0,1,-1,0,0,0,0) test, test(c1) etc. But what I want to do is just
compare treatments 1, 2 and 3 and for the life of me I cannot get the matrix
in the right form mat c2=(0,1,1,1,-1,-1,-1) seems to comapre 1,2,3 with

Be the first to hear what's new at MSN - sign up to our free newsletters!

*   For searches and help try:
*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index