On Thu, 16 Aug 2007, Rachel Jia wrote:

> 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?

The help page suggests that you need to use xlim as an inline option (part 
of ...). Following the help page example

> sm.survival(x, y, status, h=2, xlim=c(0,4))

works.  So I think you need to follow the help page exactly.


-- 
Brian D. Ripley,                  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help@stat.math.ethz.ch 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