You can install from CRAN with:
install.packages("tdcmStan")
You can install from GitHub with:
devtools::install_github("atlas-aai/tdcmStan", dependencies = TRUE)