erhmm {mapfit}R Documentation

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))
)

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

Value

An instance of ERHMM

Note

If shape is given, shape is used even though size is set.


[Package mapfit version 1.0.0 Index]