Learn R Programming

bpcp (version 1.4.2)

print.kmciLRtidy: Print A Short Summary of a kmciLRtidy, kmciLRgroup, or kmciLR Object

Description

Print number of observations, number of events, and the median survival with confidence limits for the median of a kmciLRtidy, kmciLRgroup, or kmciLR object with pointwise confidence intervals. The confidence limits will match those specified in the bpcp or bpcpfit function.

Usage

# S3 method for kmciLR
print(x, ...)
# S3 method for kmciLRtidy
print(x, ...)
# S3 method for kmciLRgroup
print(x, ...)

Arguments

x

a kmciLRtidy, kmciLRgroup, or kmciLR obejct

extra arguments

Examples

Run this code
# NOT RUN {
library(bpcp)
data(leuk2)
practice <- bpcpfit(Surv(time, status)~treatment, data=leuk2)
practice

bpcpfit(Surv(time, status)~1, data=leuk2)

bpcpfit(Surv(time, status)~1, data=leuk2, plotstyle = "standard")
bpcpfit(leuk2$time, leuk2$status, leuk2$treatment, plotstyle = "standard")
# }

Run the code above in your browser using DataLab