Skip to content
Prev 221810 / 398500 Next

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

Thanks for the answer.
Unfortunately, I'm not yet skilled enough to do such a thing. I had a look on the code and I'll try to understand it, as a good exercise.
I thought about sending fake fit objects to nomogram() derived from the original one :
- orignal : f2<- cph(Surv(d.time,death) ~ sex*(rcs(cholesterol,4)+blood.pressure)
- manually derived :
* fMale : with coef rcs(cholesterol,4) and blood.pressure form f2, no sex effect
* fFemale : with "agregated" coef sex:rcs(cholesterol,4) for cholesterol and sex:blood.pressure for BP and an obligatory sex effect.
But I failed to fool your function. Had to try though...

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, 15h 30min 27s
Objet : Re: Re : Re : [R] Nomogram with multiple interactions (package rms)
On 05/20/2010 01:42 AM, Marc Carpentier wrote:
Hi Marc,

My apologies; I misread my own example.  This will take some digging 
into the code.  If you have time to do this before I do, code change 
suggestions welcomed.

Frank