Bayesian analysis of multi-type recurrent events and dependent termination with nonparametric covariate functions. (December 2017)