[R] Question about sm.options & sm.survival

Rachel Jia littlebabybear at gmail.com
Thu Aug 16 15:26:10 CEST 2007


Hi, there:

It's my first time to post question in this forum, so thanks for your
tolerance if my question is too naive. I am using a nonparametric smoothing
procedure in sm package to generate smoothed survival curves for continuous
covariate. I want to truncate the suvival curve and only display the part
with covariate value between 0 and 7. The following is the code I wrote:

sm.options(list(xlab="log_BSI_min3_to_base", xlim=c(0,7), ylab="Median
Progression Prob"))
sm.survival(min3.base.prog.cen[,3],min3.base.prog.cen[,2],min3.base.prog.cen[,1],h=sd(min3.base.prog.cen[,3]),status.code=1
)

But the xlim option does not work. Can anyone help me with this problem?
Thanks a lot.

Rachel
-- 
View this message in context: http://www.nabble.com/Question-about-sm.options---sm.survival-tf4279605.html#a12181263
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list