[R] extracting the standard error in lrm

David Winsemius dwinsemius at comcast.net
Wed Aug 11 13:56:07 CEST 2010


On Aug 11, 2010, at 6:56 AM, david dav wrote:

> Hi,
> I would like to extract the coefficients of a logistic regression
> (estimates and standard error as well) in lrm as in glm with
>
> summary(fit.glm)$coef
>

?coef

Try instead:

coef(fit.glm)

?vcov

The accessor function for the covariance matrix is vcov, so se's for  
Wald-type tests can be derived:

diag( vcov(fit.glm) )^0.5  # or
sqrt(diag( vcov(fit.glm))

--
David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list