trMatrix_rcpp | R Documentation |
Computation of the transition probability matrix, as a function of the covariates and the regression
parameters. Written in C++. Used in fitHMM
, logAlpha
, logBeta
,
plot.moveHMM
, pseudoRes
, and viterbi
.
trMatrix_rcpp(nbStates, beta, covs)
nbStates |
Number of states |
beta |
Matrix of regression parameters |
covs |
Matrix of covariate values |
Three dimensional array trMat
, such that trMat[,,t]
is the transition matrix at
time t.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.