[R] question regarding lm and logLik in R
Wright, Deanne
deanne.wright at pioneer.com
Fri Sep 27 23:43:09 CEST 2002
It appears that the degrees of freedom reported by logLik changed between R
1.4.1 and R 1.5.1. Is this true?
Detail:
> I have been using the lm and logLik functions in R to develop code using
> version 1.4.1. When I run it on version 1.5.1, I'm getting different
> degrees of freedom with the logLik function. Version 1.5.1 seems to give
> one extra degree of freedom than version 1.4.1. As long as this is
> consistent, it is not a problem for me since I'm doing likelihood ratio
> tests, using differences in the degrees of freedom. However, I wanted to
> make sure that the degrees of freedom will be correct before I proceed.
>
> The data set I am using has 1000 observations. Both version 1.4.1 and
> version 1.5.1 give 930 degrees of freedom for the residual using the anova
> function (which also agrees with SAS), but version 1.4.1 returns 70
> degrees of freedom with logLik, while version 1.5.1 returns 71 degrees of
> freedom. All of the other output seems to be the same.
>
One person suggested that version 1.5 might include estimation of the
residual variance into the model parameters. Does anyone know if
a) this is the only change or if there is somewhere I can read about how the
degrees of freedom are calculated?
b) the degrees of freedom in 1.5.1 are correct for using in differences for
LRTs?
> Thanks very much for you consideration,
> Deanne Wright
> Deanne.Wright at pioneer.com
>
>
>
This communication is for use by the intended recipient and contains
information that may be privileged, confidential or copyrighted under
applicable law. If you are not the intended recipient, you are hereby
formally notified that any use, copying or distribution of this e-mail,
in whole or in part, is strictly prohibited. Please notify the sender
by return e-mail and delete this e-mail from your system. Unless
explicitly and conspicuously designated as "E-Contract Intended",
this e-mail does not constitute a contract offer, a contract amendment,
or an acceptance of a contract offer. This e-mail does not constitute
a consent to the use of sender's contact information for direct marketing
purposes or for transfers of data to third parties.
Francais Deutsch Italiano Espanol Portuges Japanese Chinese Korean
http://www.DuPont.com/corp/email_disclaimer.html
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list