Re: [R] degrees of freedom extraction

2008-03-04 Thread Henrique Dallazuanna
Try this: attr(logLik(lmx), "df") On 04/03/2008, Davood Tofighi <[EMAIL PROTECTED]> 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

[R] degrees of freedom extraction

2008-03-04 Thread Davood Tofighi
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