Pretty summary of the mult_cont_phase_type class.

# S3 method for mult_cont_phase_type
summary(object, ...)

Arguments

object

a mult_cont_phase_type object

...

other arguments passed to methods

Value

This function prints a nicely-formatted summary of a mult_cont_phase_type object. The summary includes the sub-intensity matrix, the initial probabilities, the defect, the reward matrix, the mean and the (co)variance of the phase-type object.

Examples


subint <- matrix(c(-3, 0, 1,
                    2, -3, 1,
                    1, 1, -2), ncol = 3)
R <- matrix(c(0, 1, 1,  2,
                 2, 1, 5,  2,
                 0, 1, 10, 2), nrow = 3, ncol=4, byrow=TRUE)
mph <- MPH(subint, reward_mat = R)
#> Warning: 
#>  The initial probability vector is automatically generated.

summary(mph)
#> 
#> Subintensity matrix:
#>      [,1] [,2] [,3]
#> [1,]   -3    2    1
#> [2,]    0   -3    1
#> [3,]    1    1   -2
#> 
#> Reward matrix:
#>      [,1] [,2] [,3] [,4]
#> [1,]    0    1    1    2
#> [2,]    2    1    5    2
#> [3,]    0    1   10    2
#> 
#> Initial probabilities:
#>      [,1] [,2] [,3]
#> [1,]    1    0    0
#> 
#> Defect:
#> [1] 0
#> 
#> Means:
#> [1] 1.0 1.5 8.0 3.0
#> 
#> Variance-covariance matrix:
#>      [,1]  [,2] [,3] [,4]
#> [1,]  1.0  0.90  5.6  1.8
#> [2,]  0.9  1.85 12.2  3.7
#> [3,]  5.6 12.20 90.0 24.4
#> [4,]  1.8  3.70 24.4  7.4
#> 
#>