rphase: Sampling of PH distributions

View source: R/model_ph.R

rphaseR Documentation

Sampling of PH distributions

Description

Generate a sample from a given PH distribution.

Usage

rphase(n, ph, ...)

Arguments

n

An integer of the number of samples.

ph

An instance of PH distribution.

...

Others

Value

A vector of samples.

Examples

## create a PH with specific parameters
(phdist <- ph(alpha=c(1,0,0),
              Q=rbind(c(-4,2,0),c(2,-5,1),c(1,0,-1)),
              xi=c(2,2,0)))

## generate 10 samples
rphase(n=10, ph=phdist)


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