[R] extracting the standard error in lrm

2010-08-11 Thread david dav
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@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] extracting the standard error in lrm

2010-08-11 Thread Dimitris Rizopoulos
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

Re: [R] extracting the standard error in lrm

2010-08-11 Thread David Winsemius
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

Re: [R] extracting the standard error in lrm

2010-08-11 Thread Frank Harrell
On Wed, 11 Aug 2010, 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 coef(fit) sqrt(diag(vcov(fit))) But these will not be very helpful except in the