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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to