Re: [R] Number of variables in lrm (Design)

From: Frank E Harrell Jr <f.harrell_at_vanderbilt.edu>
Date: Mon, 31 Mar 2008 08:59:05 -0500

Paul Sweeting wrote:
> Hi
>
>
>
> I'm sure this is straightforward, but I can't find an answer.
>
>
>
> I'm trying to find the function that returns the number of dependent
> variables/rank of the regression/degrees of freedom/something similar. Any
> ideas?
>
>
>
> Thanks!
>
>
>
> Paul

Design does not allow for singularities. To get the regression d.f. you can use length(coef(fit))-num.intercepts(fit) or just fit$stats['d.f.']

Frank

-- 
Frank E Harrell Jr   Professor and Chair           School of Medicine
                      Department of Biostatistics   Vanderbilt University

______________________________________________
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 Mon 31 Mar 2008 - 14:03:47 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 Mon 31 Mar 2008 - 14:30:25 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