Learn R Programming

PhaseTypeR (version 1.0.4)

print.cont_phase_type: Print method for phase-type objects

Description

Print method for cont_phase_type, disc_phase_type, mult_cont_phase_type and mult_disc_phase_type classes.

Usage

# S3 method for cont_phase_type
print(x, ...)

# S3 method for disc_phase_type print(x, ...)

# S3 method for mult_cont_phase_type print(x, ...)

# S3 method for mult_disc_phase_type print(x, ...)

Value

Prints the phase-type object as a list.

Arguments

x

phase-type object

...

other arguments not used by this method

Examples

Run this code
subintensity_matrix <- matrix(c(-1.5, 1.5, 0,
                                 0,  -1,   1,
                                 0,   0,  -0.5),
                              ncol = 3,
                              byrow = TRUE)
ph1 <- PH(subintensity_matrix)

print(ph1)

Run the code above in your browser using DataLab