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

Re: st: How do I obtain SS ad df after anova


From   khigbee@stata.com
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: How do I obtain SS ad df after anova
Date   Mon, 04 Nov 2002 16:26:44 -0600

Lars Korsholm <korsholm@isd.sdu.dk> asks:

> Is it possible to obtain the SS and df for each factor aften an anova?
> Eg
> . anova
> 
> Number of obs =     240     R-squared     = 0.9598
> Root MSE      = .184508     Adj R-squared =0.9559
> 
> Source |  Partial SS    df       MS           F     Prob> F
> -------+----------------------------------------------------
>  Model |  177.253883    21  8.44066107     247.94   0.0000
>        |
>  pttid |  176.842823    19  9.30751703     273.40   0.0000
>  obsid |  .016978337     2  .008489168       0.25   0.7795
>        |
> Residu |  7.42145465   218   .03404337   
> -------+----------------------------------------------------
>  Total |  184.675337   239  .772700156   
> 
> I know from -estimate list- that there aer locals with
> "177.253883", "21" from the "Model" line
> and "7.42145465" and "218" from the Residual line
> however can I get ditto from the lines with my two factores (pttid and
> obsid)? 
> I suspect they are around because I can type -test pttid- which use these
> numbers (? recalculate them??)


-anova- does not save the individual term SS and df for each term
in such a way that you can grab them directly after the -anova-.
However, you can call -test- for each term of interest and then
grab the SS and df from the r() returned results.


Ken Higbee    khigbee@stata.com
StataCorp     1-800-STATAPC

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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