Computation of the transition probability matrix, as a function of the covariates and the regression
parameters. Written in C++. Used in viterbi
.
trMatrix_rcpp(nbStates, beta, covs, betaRef)
Three dimensional array trMat
, such that trMat[,,t]
is the transition matrix at
time t.
Number of states
Matrix of regression parameters
Matrix of covariate values
Indices of reference elements for t.p.m. multinomial logit link.