trMatrix_rcpp: Transition probability matrix

Description Usage Arguments Value

View source: R/RcppExports.R

Description

Computation of the transition probability matrix, as a function of the covariates and the regression parameters. Written in C++. Used in viterbi.

Usage

1
trMatrix_rcpp(nbStates, beta, covs, betaRef)

Arguments

nbStates

Number of states

beta

Matrix of regression parameters

covs

Matrix of covariate values

betaRef

Indices of reference elements for t.p.m. multinomial logit link.

Value

Three dimensional array trMat, such that trMat[,,t] is the transition matrix at time t.


momentuHMM documentation built on Sept. 5, 2021, 5:17 p.m.