Learn R Programming

contTimeCausal (version 1.1)

print: Print the Primary Results

Description

Print the primary results of a ctCoxMSM() or ctSFTM() analysis.

Usage

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

Arguments

x

An S3 object of class ctc. The value object returned by a call to ctCoxMSM() or ctSFTM().

...

ignored

Value

No return value, called to display key results.

Examples

Run this code
# NOT RUN {
 data(ctcData)

 # sample data to reduce computation time of example
 smp <- ctcData$id %in% sample(1:1000, 150, FALSE)
 ctcData <- ctcData[smp,]

 # analysis with both time-dependent and time-independent components
 res <- ctCoxMSM(data = ctcData, base = "x", td = "xt")

 print(x = res)

 # analysis with both time-dependent and time-independent components
 res <- ctSFTM(data = ctcData, base = "x", td = "xt")

 print(x = res)

# }

Run the code above in your browser using DataLab