Learn R Programming

shrinkDSM (version 1.0.0)

print.shrinkDSM: Nicer printing of shrinkDSM objects

Description

Nicer printing of shrinkDSM objects

Usage

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

Value

Called for its side effects and returns invisibly.

Arguments

x

a shrinkDSM object.

...

Currently ignored.

Author

Peter Knaus peter.knaus@wu.ac.at

Examples

Run this code
# \donttest{
set.seed(123)
data("gastric")

# Create intervals for piecewise exponential model
intervals <- divisionpoints(gastric$time, gastric$status, 2)

# Estimate model
mod <- shrinkDSM(time ~ radiation, gastric,
                 delta = gastric$status, S = intervals)

# Print
print(mod)

# Alternatively
mod
# }

Run the code above in your browser using DataLab