Message-ID: <47F0EE29.3050708@vanderbilt.edu>
Date: 2008-03-31T13:59:05Z
From: Frank E Harrell Jr
Subject: Number of variables in lrm (Design)
In-Reply-To: <000601c892ff$09069040$1b13b0c0$@co.uk>
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