Re: [R] extracting p-value from an lrm object

From: David Winsemius <>
Date: Mon, 10 Mar 2008 13:57:24 +0000 (UTC)

"Shubha Vishwanath Karanth" <> wrote in

> How can I extract p-values from an 'lrm' (logistic regression model)
> oject?

  1. In writing to the list you should tell people where you got the function (presumably Design).
  2. Looks to me in running lrm with the first example from the help text that the model object is not examined with summary() but rather with anova(). If you just need to see p-values for a particular coefficient, then run anova(model). If you need to extract the values and your variable of interest is age then using the example in lrm help:

anova(f)["age",] # will give you all the statistics and ...

anova(f)["age","P"] # will give you just the p-value

David Winsemius

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Mon 10 Mar 2008 - 14:08:58 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 10 Mar 2008 - 15:30:21 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive