sm.survival(x, y, status, h , hv = 0.05, p = 0.5, status.code = 1, ...)status.code defines a complete survival time.
h is its standard deviation.
status which defines a complete survival time.
sm.options
function, through a mechanism which limits their effect only to this
call of the function; those relevant for this function are
add,
eval.points,
ngrid,
display,
xlab,
ylab,
lty;
see the documentation of sm.options for their
description.
display="none" is set.sm.regression, sm.options
x <- runif(50, 0, 10)
y <- rexp(50, 2)
z <- rexp(50, 1)
status <- rep(1, 50)
status[z<y] <- 0
y <- pmin(z, y)
sm.survival(x, y, status, h=2)
Run the code above in your browser using DataLab