Re: [R] Extracting P-values from the lrm function in the rms library

2010-06-19 Thread Frank E Harrell Jr
On 06/19/2010 10:30 AM, David Winsemius wrote: On Jun 19, 2010, at 7:45 AM, Christos Argyropoulos wrote: Hi, mod.poly3$coef/sqrt(diag(mod.poly3$var)) will give you the Wald stat values, so pnorm(abs(mod.poly3$coef/sqrt(diag(mod.poly3$var))),lower.tail=F)*2 will yield the corresponding p-v

Re: [R] Extracting P-values from the lrm function in the rms library

2010-06-19 Thread David Winsemius
On Jun 19, 2010, at 7:45 AM, Christos Argyropoulos wrote: Hi, mod.poly3$coef/sqrt(diag(mod.poly3$var)) will give you the Wald stat values, so pnorm(abs(mod.poly3$coef/sqrt(diag(mod.poly3$var))),lower.tail=F)*2 will yield the corresponding p-vals It will, although it may appear as magic t

Re: [R] Extracting P-values from the lrm function in the rms library

2010-06-19 Thread Christos Argyropoulos
Hi, mod.poly3$coef/sqrt(diag(mod.poly3$var)) will give you the Wald stat values, so pnorm(abs(mod.poly3$coef/sqrt(diag(mod.poly3$var))),lower.tail=F)*2 will yield the corresponding p-vals Christos Argyropoulos __

[R] Extracting P-values from the lrm function in the rms library

2010-06-18 Thread Josh B
Hello again R users, I have a devilishly hard problem, which should be very simple. I hope someone out there will have the answer to this on the tip of their tongue. Please consider the following toy example: x <- read.table(textConnection("y x1 x2 indv.1 bagels 4 6 indv.2 donuts 5 1 indv.3 do