Re: Extracing p-values from lrm object



Julian Day wrote:
I have a logistic regression model object fitted using Frank Harrell's lrm
function.

I want to extract the p-values of the coefficients. I can find what they are
using print(OBJECT), which produces a results table.

However, I can't work out how to extract the p-values from the object itself
in such a way as they can be used by another function, as the information
does not appear in any of the attributes of the model object.

It's possible that I could get what I want from summary(OBJECT) but this
won't run, giving the following error:

Problem in summary.Design(<model>): adjustment values not
defined here or with datadist for <name of covariate>

Any suggestions?

Send such messages to the package's maintainer or to r-help.

For your particular question, process the output of the anova( ) command which can be treated as a matrix.

Frank Harrell


Julian Day



.