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.
Cross Validated is a question and answer site for people interested in statistics, machine learning, data analysis, data mining, and data visualization. It only takes a minute to sign up.Sign up to join this community
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.