erhmm: Create ERHMM

View source: R/model_erhmm.R

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


mapfit documentation built on Nov. 22, 2022, 5:05 p.m.