jsntxt
2010-Nov-25 07:00 UTC
[R] How to change value of y axis from log relative Hazard to relative Hazard
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? Millions of thanks! -- View this message in context: http://r.789695.n4.nabble.com/How-to-change-value-of-y-axis-from-log-relative-Hazard-to-relative-Hazard-tp3058505p3058505.html Sent from the R help mailing list archive at Nabble.com.
David Winsemius
2010-Nov-25 14:24 UTC
[R] How to change value of y axis from log relative Hazard to relative Hazard
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