The goal of DxTBjointCE is to estimate the joint posterior distribution of cost and time to event (diagnosis or start treatment).
And the development version from GitHub with:
# install.packages("devtools")
devtools::install_github("n8thangreen/DxTBjointCE")
This is a basic example which shows you how to solve a common problem: