Description Usage Arguments Value Examples
View source: R/survivalfunctions.R
Survival function estimate using Kaplan Meier method
1 | KaplanMeier(x, rs)
|
x |
The value to pass to the Kaplan Meier function |
rs |
is the output from RiskSet(...) |
The estimate of the survival function at a given value of x
1 2 3 4 5 6 | x <- c(1.0,1.3,1.5,1.5,2.1,2.1,2.1,2.8)
rs <- RiskSet(x)
plot.stepfun(ecdf(x), verticals=TRUE, pch='',
ylab="F(x)", main="Empirical CDF")
plot(function(y) NelsonAalen(y,rs), 0, 3,
type='s', ylab="H(x)", main="Nelson-Aalen estimate of H(x)")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.