Learn R Programming

mapfit (version 1.0.0)

erhmm: Create ERHMM

Description

Create an instance of ERHMM

Usage

erhmm(
  size,
  shape,
  alpha = rep(1/length(shape), length(shape)),
  rate = rep(1, length(shape)),
  P = matrix(1/length(shape), length(shape), length(shape))
)

Value

An instance of ERHMM

Arguments

size

An integer of the number of phases

shape

A vector of shape parameters

alpha

A vector of initial probability (alpha)

rate

A vector of rate parameters

P

A matrix of transition probabilities