| GPHClass {mapfit} | R Documentation |
General phase-type distribution
Description
General phase-type distribution
General phase-type distribution
Details
A continuous distribution dominated by a continuous-time Markov chain. A random time is given by an absorbing time.
Methods
Public methods
Method alpha()
Get alpha
Usage
GPHClass$alpha()
Returns
A vector of alpha
Method Q()
Get Q
Usage
GPHClass$Q()
Returns
A matrix of Q
Method xi()
Get xi
Usage
GPHClass$xi()
Returns
A vector of xi
Method new()
Create a GPH
Usage
GPHClass$new(alpha, Q, xi)
Arguments
alphaA vector of initial probability
QAn infinitesimal generator
xiAn exit rate vector
Returns
An instance of GPH
Method copy()
copy
Usage
GPHClass$copy()
Returns
A new instance
Method size()
The number of phases
Usage
GPHClass$size()
Returns
The number of phases
Method df()
Degrees of freedom
Usage
GPHClass$df()
Returns
The degrees of freedom
Method moment()
Moments of GPH
Usage
GPHClass$moment(k, ...)
Arguments
kA value to indicate the degrees of moments. k-th moment
...Others
Returns
A vector of moments from 1st to k-th moments
Method print()
Usage
GPHClass$print(...)
Arguments
...Others
Method pdf()
Usage
GPHClass$pdf(x, poisson.eps = 1e-08, ufactor = 1.01, ...)
Arguments
xA vector of points
poisson.epsA value of tolerance error for uniformization
ufactorA value of uniformization factor
...Others
Returns
A vector of densities.
Method cdf()
CDF
Usage
GPHClass$cdf(x, poisson.eps = 1e-08, ufactor = 1.01, ...)
Arguments
xA vector of points
poisson.epsA value of tolerance error for uniformization
ufactorA value of uniformization factor
...Others
Returns
A vector of probabilities
Method ccdf()
Complementary CDF
Usage
GPHClass$ccdf(x, poisson.eps = 1e-08, ufactor = 1.01, ...)
Arguments
xA vector of points
poisson.epsA value of tolerance error for uniformization
ufactorA value of uniformization factor
...Others
Returns
A vector of probabilities
Method sample()
Make a sample
Usage
GPHClass$sample(...)
Arguments
...Others
Returns
A sample of GPH
Method emfit()
Run EM
Usage
GPHClass$emfit(data, options, ...)
Arguments
dataA dataframe
optionsA list of options
...Others
Method init()
Initialize with data
Usage
GPHClass$init(data, ...)
Arguments
dataA dataframe
...Others
optionsA list of options
Method clone()
The objects of this class are cloneable with this method.
Usage
GPHClass$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
Note
This function provides the values of p.d.f. for PH distribution with the uniformization technique.
This function provides the values of c.d.f. for PH distribution with the uniformization technique.
This function provides the values of complementary c.d.f. for PH distribution with the uniformization technique.