InitProb {STAN} | R Documentation

## Get initial state probabilities of a (bd)HMM

### Description

This function returns the initial state probabilities of a (bd)HMM.

### Usage

    InitProb(hmm)

### Arguments

`hmm` | An object of class HMM or bdHMM.

### Value

The initial state probabilities as a numeric vector.

### See Also

`HMM, bdHMM`

### Examples

    nStates = 5
    means = list(4,11,4,11,-1)
    Sigma = lapply(list(4,4,4,4,4), as.matrix)
    transMat = matrix(1/nStates, nrow=nStates, ncol=nStates)
    initProb = rep(1/nStates, nStates)
    hmm = HMM(initProb=initProb, transMat=transMat, emission=HMMEmission(type='Gaussian', parameters=list(mu=means, cov=Sigma), nStates=length(means)), nStates=nStates, status='initial')
    InitProb(hmm)

[Package STAN version 2.20.0 Index]