This summary function is a method that depends on the class of the argument. For objects of class discphasetype or contphasetype, summary prints the initial distribution and the sub-transition/sub-intensity matrix of the phase-type representation.

# S3 method for discphasetype
summary(object)

# S3 method for contphasetype
summary(object)

Arguments

object

an object for which a summary is desired. To be able to use the summaries for phase-type distributed objects,the object has to be of class discphasetype or contphasetype.

Value

summary prints the initial distribution and the sub-transition/sub-intensity matrix of the phase-type representation. If the sum of all entries in the initial distribution is less than one, it also prints the defect size (1-sum(initDist)).

See also

Examples

## Summarising the distribution for the total branch length ## for a sample of size n=10 summary(T_Total$n10)
#> A continuous phase-type distribution with initial probability vector #> [1] 1 0 0 0 0 0 0 0 0 #> and subintensity matrix #> [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] #> [1,] -4.5 4.5 0.0 0.0 0.0 0.0 0.0 0.0 0.0 #> [2,] 0.0 -4.0 4.0 0.0 0.0 0.0 0.0 0.0 0.0 #> [3,] 0.0 0.0 -3.5 3.5 0.0 0.0 0.0 0.0 0.0 #> [4,] 0.0 0.0 0.0 -3.0 3.0 0.0 0.0 0.0 0.0 #> [5,] 0.0 0.0 0.0 0.0 -2.5 2.5 0.0 0.0 0.0 #> [6,] 0.0 0.0 0.0 0.0 0.0 -2.0 2.0 0.0 0.0 #> [7,] 0.0 0.0 0.0 0.0 0.0 0.0 -1.5 1.5 0.0 #> [8,] 0.0 0.0 0.0 0.0 0.0 0.0 0.0 -1.0 1.0 #> [9,] 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 -0.5