[R] extracting the standard error in lrm

Dimitris Rizopoulos d.rizopoulos at erasmusmc.nl
Wed Aug 11 13:45:23 CEST 2010


well, you can directly use the coef() and vcov() generics, e.g.,

library(rms)
y <- rbinom(100, 1, 0.5)
x <- runif(100, -3, 3)

Fit <- lrm(y ~ x)
Fit
coef(Fit)
sqrt(diag(vcov(Fit)))


I hope it helps.

Best,
Dimitris


On 8/11/2010 12:56 PM, 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
>
> Thanks
> David
>
> ______________________________________________
> 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.
>

-- 
Dimitris Rizopoulos
Assistant Professor
Department of Biostatistics
Erasmus University Medical Center

Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands
Tel: +31/(0)10/7043478
Fax: +31/(0)10/7043014



More information about the R-help mailing list