Pretty summary of the cont_phase_type
class.
# S3 method for cont_phase_type
summary(object, ...)
a cont_phase_type object
other arguments passed to methods
This function prints a nicely-formatted summary of
a cont_phase_type
object. The summary includes the
sub-intensity matrix, the initial probabilities, the defect,
the mean and the variance of the phase-type object.
ph <- PH(matrix(c(-3, 0, 1,
2, -3, 1,
1, 1, -2), ncol = 3))
#> Warning:
#> The initial probability vector is automatically generated.
summary(ph)
#>
#> Subintensity matrix:
#> [,1] [,2] [,3]
#> [1,] -3 2 1
#> [2,] 0 -3 1
#> [3,] 1 1 -2
#>
#> Initial probabilities:
#> [,1] [,2] [,3]
#> [1,] 1 0 0
#>
#> Defect:
#> [1] 0
#>
#> Mean: 1.5
#>
#> Variance: 1.85
#>