Survival times are often right censored and left truncated. From my experience, it does not seem like OpenBUGS allows for both. Truncation is denoted as T( , ) and censoring as C( ,). For instance, a censored observation known to lie above 10 days, but cannot have been observed below 2 days (left truncation) seem like it should be coded as thus:

y[i]~dexp(lambda)T(2 , )C(10, )

where the absent second values denote no upper limits. But it seems OpenBUGS can only do one or the other; using both in the code invariably results in a compilation error. Since this is a typical and reasonable modeling scenario, is there any way to do this in OpenBUGS?

  • $\begingroup$ If you're not beholden to OpenBUGS, you can do this in R. $\endgroup$
    – rocinante
    Mar 30, 2014 at 15:02
  • $\begingroup$ Thanks, I know how it can be done in JAGS, but I was curious about BUGS. Seems like there should be a way, but perhaps not. $\endgroup$
    – ATJ
    Mar 30, 2014 at 19:06


Your Answer

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

Browse other questions tagged or ask your own question.