Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: ANOVA versus ANCOVA


From   Robert A Yaffee <bob.yaffee@nyu.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: ANOVA versus ANCOVA
Date   Fri, 25 Jul 2008 20:22:14 -0400

John,
   The answer is yes, you can obtain the same ANCOVA results in SPSS and Stata.
For example, in Stata, on the command line, type:   

sysuse systolic
anova systolic drug disease age disease*age, continuous(age) partial

When you run the SPSS command suppress the intercept and build the same model as a univariate GLM
and you will get the same results.

  Cheers,
  
  Bob Yaffee

Robert A. Yaffee, Ph.D.
Research Professor
Silver School of Social Work
New York University
Senior Research Scientist,
NSF/DRU Prop# 0826983


Biosketch: http://homepages.nyu.edu/~ray1/Biosketch2008.pdf

CV:  http://homepages.nyu.edu/~ray1/vita.pdf

----- Original Message -----
From: John Magill <johnmagill@ymail.com>
Date: Friday, July 25, 2008 11:45 am
Subject: st: ANOVA versus ANCOVA
To: statalist@hsphsun2.harvard.edu


> SPPS has a procedure called ANCOVA, while Stata's manual indicates 
> that ANOVA produces both ANOVA and ANCOVA results.  Will Stat produce 
> the same results as SPSS on a given dataset?  I am working on a 
> project with two colleagues who will be using SPSS, and I want to be 
> sure my results will be identical to theirs.
> Thanks,
> John
> 
> 
>       
> 
> 
> 
> 
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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