Estima a funcao de risco acumulado H(t) pelo estimador de Nelson-Aalen.
Examples
head(rnp_nelson_aalen(survival::lung$time, survival::lung$status == 2))
#> # A tibble: 6 × 5
#> tempo n_risco n_evento risco_acumulado ep
#> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 5 228 1 0.0044 0.0044
#> 2 11 227 3 0.0176 0.0088
#> 3 12 224 1 0.0221 0.0099
#> 4 13 223 2 0.031 0.0117
#> 5 15 221 1 0.0356 0.0126
#> 6 26 220 1 0.0401 0.0134