The risk set at t is conditional on entry < t, which is exactly the
delayed-entry Kaplan-Meier estimator. A thin alias for Lftrt;
the estimator already exists and is not duplicated here.
Value
List with estimate (survival at the last event time),
times, survival, se, ci_lower,
ci_upper, n_obs, n_events, method.
References
Klein, J. P. and Moeschberger, M. L. (2003). Survival Analysis: Techniques for Censored and Truncated Data, 2nd ed. Springer, section 4.2.
Examples
Sstrlf(c(0, 0, 1, 2), c(5, 6, 7, 8), c(1, 1, 0, 1))
#> $estimate
#> [1] 0
#>
#> $times
#> [1] 5 6 8
#>
#> $survival
#> [1] 0.75 0.50 0.00
#>
#> $se
#> [1] 0.2165064 0.2500000 0.0000000
#>
#> $ci_lower
#> [1] 0.3256553 0.0100090 0.0000000
#>
#> $ci_upper
#> [1] 1.000000 0.989991 0.000000
#>
#> $n_obs
#> [1] 4
#>
#> $n_events
#> [1] 3
#>
#> $method
#> [1] "delayed-entry Kaplan-Meier [Klein & Moeschberger 2003]"
#>
