Gravar-mail: A joint logistic regression and covariate-adjusted continuous-time Markov chain model