Search code examples
rsurvival-analysissurvival

survreg with left truncated (delayed entry) data


I am trying to fit a delayed entry parametric regression model for a Poisson process with Weibull baseline rate. It doesn't appear that R's survreg function supports left truncated data (I get the error: start-stop type Surv objects are not supported). Is there an alternate approach/R package that I could use to do this?


Solution

  • You may want to try something like:

    flexsurv::flexsurvreg(formula = Surv(starttime, stoptime, status) ~ x1 + x2, 
                          data=data, dist = "weibull") 
    

    Check the options the package offers which may fit your need.