gmmpp: Create GMMPP

View source: R/model_gmmpp.R

gmmppR Documentation

Create GMMPP

Description

Create an instance of GMMPP

Usage

gmmpp(size, alpha, D0, D1)

Arguments

size

An integer for the number of phases

alpha

A vector of initial probability

D0

An infinitesimal generator without arrivals

D1

An infinitesimal generator with arrivals

Value

An instance of GMMPP

Note

This function can omit several patterns of arguments. For example, map(5) omit the arguments alpha, Q and xi. In this case, the default values are assigned to them.

Examples

## create a map (full matrix) with 5 phases
(param1 <- gmmpp(5))

## create a map with specific parameters
(param2 <- gmmpp(alpha=c(1,0,0),
              D0=rbind(c(-4,2,0),c(2,-5,1),c(1,0,-1)),
              D1=rbind(c(2,0,0),c(0,2,0),c(0,0,0))))


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