Skip to content
Prev 164691 / 398506 Next

Obtaining p-values for coefficients from LRM function (package Design) - plaintext

On Dec 13, 2008, at 1:12 PM, joris meys wrote:

            
That link could create a montrous interpretation problem.
If you want to see how Harrell does it, you can work through the code  
that you get from:

print.lrm

The last element in the "stats" list is (1 - pchisq(z^2, 1), 4) )  
where z was defined as

z <- cof/sqrt(vv)

... and those were obtained further up as:

vv <- diag(x$var)
     cof <- x$coef

So you could try seeing if this is satisfying:

vv <- diag(fit$var) ;
cof <- fit$coef ;
z <- cof/sqrt(vv) ;
1 - pchisq(z^2, 1)