map: Create MAP

View source: R/model_map.R

mapR Documentation

Create MAP

Description

Create an instance of MAP

Usage

map(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 MAP

Note

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

Examples

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

## create a map with specific parameters
(param2 <- map(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.