0
$\begingroup$

Is there any R implementation of inverse probability weighted Kaplan-Meier estimator for left truncated and right censored data?

I found only implementation without left truncation in IPWsurvival package.

$\endgroup$
2
  • $\begingroup$ Thanks for your answer. How I can understand that survfit() I used is considering left-truncation? $\endgroup$
    – Ana
    Dec 12, 2020 at 22:33
  • $\begingroup$ Hello! In my opinion, you can see this by printing a Surv() object. If it looks like [200, 269+], then the left truncation is used. If it looks like 269+ – then the left truncation is not used. $\endgroup$
    – Kess
    Dec 24, 2020 at 12:05

1 Answer 1

2
$\begingroup$

God, that was incredibly easy.

This can obviously be done with a conventional function survfit(). You need to assign desired weights to parameter w. Package IPWsurvival is needed only for the correct application of logrank test.

I hope this answer will save a lot of time for future researchers.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.