[R] How to change value of y axis from log relative Hazard to relative Hazard

David Winsemius dwinsemius at comcast.net
Thu Nov 25 15:24:48 CET 2010


On Nov 25, 2010, at 2:00 AM, jsntxt wrote:

>
> http://r.789695.n4.nabble.com/file/n3058505/file.csv file.csv
> Hi, Rusers
>    I have a problem in making a rcspline.plot with a Hmisc package.
>    My data is in the upload attachment.
>    My programme as follows:
> library(Hmisc)
> A<-read.csv("file.csv",header=TRUE)
> attach(A)
> rcspline
> .plot
> (factor
> ,Time
> ,model
> =
> "cox
> ",xrange
> =
> c
> (0,3
> ),ylim
> =
> c
> (-1,2
> ),event
> =
> event
> ,nk
> =
> 4
> ,knots
> =
> c
> (0.8,1.0,1.5,2.0
> ),showknots=TRUE,plotcl=FALSE,statloc="none",subset=SEX=="2",lty=2)
>    The plot could be made but its y axis represents the value of log
> relative Hazard, is there any method to change value of y axis from  
> log
> relative Hazard to relative Hazard?

I have never used that function. For the task you are facing, Harrell  
provides tools in the form of Predict with the fun argument = exp and  
the usual ploting functions for rms

-- 

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list