print.predictCSC: Print predictions from a Cause-specific Cox proportional...

Description Usage Arguments Examples

View source: R/print.predictCSC.R

Description

Print predictions from a Cause-specific Cox proportional hazard regression

Usage

1
2
## S3 method for class 'predictCSC'
print(x, digits = 3, ...)

Arguments

x

object obtained with the function predictCox.

digits

integer indicating the number of decimal places.

...

Passed to print.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## no strata
d <- sampleData(1e2, outcome = "competing.risks")
m.CSC <- CSC(Hist(time,event)~ X1 + X2 + X6, data = d)
pred.CSC <- predict(m.CSC, time = 1:5, cause = 1,
                      se = TRUE, keep.newdata = TRUE)

pred.CSC
print(pred.CSC, ci = TRUE)

## strata
library(survival)
m.SCSC <- CSC(Hist(time,event)~ strata(X1) + strata(X2) + X6,
              data = d)
pred.SCSC <- predict(m.SCSC, time = 1:5, cause = 1,
               se = TRUE, keep.newdata = TRUE, keep.strata = TRUE)
pred.SCSC
print(pred.SCSC, ci = TRUE)

riskRegression documentation built on April 19, 2018, 5:04 p.m.