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 the following:eval.points is set to NA.
Default: ngrid=50."none" will prevent any graphical output from being produced.
The default setting "lines" (or indeed any other value) will produce a
plot of the data and estimate.FALSE, which creates a new plot.sm.regression, sm.optionsx <- 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