Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Number of degrees of freedom


From   Nikolaos Pandis <[email protected]>
To   [email protected]
Subject   st: Number of degrees of freedom
Date   Sat, 27 Feb 2010 02:09:59 -0800 (PST)

Hi to all.

I would like to ask:

Let us say we run a Cox model with 2 predictors A and B, where A has 4 levels and B has 2 levels.
Then you run the same model plus the A*B interaction term and perform an 
-lrtest- to check if the interaction is significant.

How many degrees of freedom would this test have? Is it 3? 
Why? 
Is it because 3 extra parameter are included in the second model as we look at the output? 
Do we count the difference in the number of parameters in the output between the 2 models or the difference in the number of parameters in the command line? The latter will indicate only 1 parameter difference i.e the intarction term

Many thanks,

Nick


      
*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index