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

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

"Shubha Vishwanath Karanth" <shubhak_at_ambaresearch.com> wrote in news:A36876D3F8A5734FA84A4338135E7CC303301389_at_BAN-MAILSRV03.Amba.com:

>
> 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

______________________________________________
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.
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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive