Pretty summary of the mult_dist_phase_type class.

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

Arguments

object

a mult_dist_phase_type object

...

other arguments passed to methods

Value

This function prints a nicely-formatted summary of a mult_dist_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(0.4, 0, 0.2,
                   0.5, 0.3, 0.2,
                   0, 0.7, 0.2), ncol = 3)
R <- matrix(c(0, 1, 1,
              2, 1, 5,
              0, 1, 10,
              1, 2, 3), nrow = 3)
mdph <- MDPH(subint, reward_mat = R)
#> Warning: 
#>  The initial probability vector is automatically generated.

summary(mdph)
#> 
#> Subintensity matrix:
#>      [,1] [,2] [,3]
#> [1,]  0.4  0.5  0.0
#> [2,]  0.0  0.3  0.7
#> [3,]  0.2  0.2  0.2
#> 
#> Reward matrix:
#>      [,1] [,2] [,3] [,4]
#> [1,]    0    2    0    1
#> [2,]    1    1    1    2
#> [3,]    1    5   10    3
#> 
#> Initial probabilities:
#>      [,1] [,2] [,3]
#> [1,]    1    0    0
#> 
#> Defect:
#> [1] 0
#> 
#> Means:
#> [1]  4.120879 16.428571 21.428571 12.472527
#> 
#> Variance-covariance matrix:
#>          [,1]      [,2]      [,3]      [,4]
#> [1,] 14.15892  46.19611  71.97802  37.91209
#> [2,] 46.19611 166.04396 247.80220 129.91547
#> [3,] 71.97802 247.80220 393.40659 196.15385
#> [4,] 37.91209 129.91547 196.15385 104.24345
#> 
#>