Re: [R] degrees of freedom extraction

From: Henrique Dallazuanna <wwwhsd_at_gmail.com>
Date: Tue, 04 Mar 2008 21:57:04 -0300

Try this:

attr(logLik(lmx), "df")

On 04/03/2008, Davood Tofighi <dtofighi_at_asu.edu> wrote:
> Hello,
>
> II used the logLik() function to get the log-likelihood estimate of an
> object. The function also prints the degrees of freedom. How can I extract
> the degrees of freedom and assign it to a variable.
> Below is the output:
> > logLik(fit2pl)
> 'log Lik.' -4842.912 (df=36)
>
> Thanks,
> Davood Tofighi
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 05 Mar 2008 - 00:59:32 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 05 Mar 2008 - 01:30:20 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive