Learn R Programming

uHMM (version 1.0)

transitionMatrix: Transition matrix estimation

Description

This function estimates the transition matrix of a (Hidden) Markov Model from a vector of state sequencing.

Usage

transitionMatrix(states)

Arguments

states
a numeric vector of state sequencing.

Value

Estimated transition matrix.

See Also

HMMparams

Examples

Run this code
states<-c(1,1,3,2,1,2,1,3)
A<-transitionMatrix(states)
A

Run the code above in your browser using DataLab