getHMM: Create HMM from Parameter Values

Description Usage Arguments Value Author(s) See Also Examples

View source: R/utils.R

Description

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

Usage

1
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.

Author(s)

Peter Humburg

See Also

hmm.setup

Examples

1
2
3
4
5
6
7
8
## 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)

humburg/tileHMM documentation built on May 17, 2019, 9:13 p.m.