Skip to content
Prev 221489 / 398500 Next

Re : Re : Nomogram with multiple interactions (package rms)

Thank you for your responses, but I don't think you're right about the doc...
I carefully looked at it before posting and ran the examples, looked in Vanderbilt Biostat doc, and just looked again example(nomogram) :
1st example : categorical*continous : two axes for each sex
f <- lrm(y ~ lsp(age,50)+sex*rcs(cholesterol,4)+blood.pressure)


2nd : continous*continous : one "age" axe for each specified value of cholesterol
g <- lrm(y ~ sex + rcs(age,3)*rcs(cholesterol,3))

3rd and 4th : categorical*continous : two axes for each sex (4th with fun)
f <- psm(Surv(d.time,death) ~ sex*age, dist='lognormal')

5th : categorical*continous : two axes for each sex (with fun)
g <- lrm(Y ~ age+rcs(cholesterol,4)*sex)

I'm desperately trying to represent a case of categorical*(continous+continous) :
f2 <- cph(Surv(d.time,death) ~ sex*(rcs(cholesterol,4)+blood.pressure)
The best solution I can think of is to draw one nomogram for each sex :
Assuming 'male' is the ref level of sex :
1st nomogram : one axe for rcs(cholesterol,4), one axe for blood.pressure
2nd nomogram : one axe for sex:rcs(cholesterol,4), one axe for sex:blood.pressure, both shifted because of the sex own effect.
(I badly draw it in my previous mail)
I didn't see any example of this "adjustement" of nomogram to 'male' or 'female'...

I hope I gave a clearer explanation and I'm not wrong about this unmentioned case.

Marc




----- Message d'origine ----
De : Frank E Harrell Jr <f.harrell at vanderbilt.edu>
? : Marc Carpentier <marc.carpentier at ymail.com>
Cc : r-help-request Mailing List <r-help at r-project.org>
Envoy? le : Jeu 20 mai 2010, 0h 55min 32s
Objet : Re: Re : [R] Nomogram with multiple interactions (package rms)
On 05/19/2010 04:36 PM, Marc Carpentier wrote:
I think the documentation tells you how to do this.  But you failed to 
look at the output from example(nomogram).  In one of the examples two 
continuous predictors have two axes each, with male and female in close 
proximity.  Or maybe I'm just missing your point.

Frank