ph | R Documentation |
Create an instance of GPH
ph(size, alpha, Q, xi)
size |
An integer for the number of phases |
alpha |
A vector of initial probability |
Q |
An infinitesimal generator |
xi |
An exit rate vector |
An instance of GPH
This function can omit several patterns of arguments. For example, ph(5)
omit the arguments alpha
, Q
and xi
. In this case, the default values are
assigned to them.
## create a PH (full matrix) with 5 phases (param1 <- ph(5)) ## create a PH (full matrix) with 5 phases (param1 <- ph(size=5)) ## create a PH with specific parameters (param2 <- 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)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.