Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

Right truncation in survival analysis

$
0
0

Im trying to censored in the right and it is not working. My code is the following:

km_fit <- survfit(Surv(mes, mes_2, estado, type = 'interval2') ~ 1,data = survival_clientes)

However, if I try with type = 'interval' it works.

I need interval2 because i have NAs for the right truncation, and this is really important to get the right interpretation.


Viewing all articles
Browse latest Browse all 201839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>