Learn R Programming

tileHMM (version 1.0-7)

getHMM: Create HMM from Parameter Values

Description

Create a two state HMM with t emission distributions from a list of parameters.

Usage

getHMM(params, snames)

Arguments

params
A list with components mu, sigma and nu, each a vector with two elements. They provide values for the location parameter, scale parameter and degrees of freedom for both states. Component a is a vector of length two providing the off diagonal elements of the transition probability matrix.
snames
Two character strings that should be used as state names.

Value

Object of class contHMM with the parameters provided.

See Also

hmm.setup

Examples

Run this code
## create two state HMM with t distributions
state.names <- c("one","two")
transition <- c(0.035, 0.01)
location <- c(1, 2)
scale <- c(1, 1)
df <- c(4, 6)
hmm <- getHMM(list(a=transition, mu=location, sigma=scale, nu=df), 
    state.names)

Run the code above in your browser using DataLab