Re: Extracing p-values from lrm object
- From: Frank E Harrell Jr <f.harrell@xxxxxxxxxxxxxx>
- Date: Wed, 15 Mar 2006 13:44:23 -0600
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
- Follow-Ups:
- Re: Extracing p-values from lrm object
- From: Eric B
- Re: Extracing p-values from lrm object
- References:
- Extracing p-values from lrm object
- From: Julian Day
- Extracing p-values from lrm object
- Prev by Date: Re: skewness, use mean or median?
- Next by Date: Discrete choice models question
- Previous by thread: Extracing p-values from lrm object
- Next by thread: Re: Extracing p-values from lrm object
- Index(es):