| summary.frailtyCmprsk | R Documentation |
This function returns hazard rations (HR) and its confidence intervals
## S3 method for class 'frailtyCmprsk'
summary(object, level = 0.95, len = 6, d = 2,
lab="hr",...)
object |
output from a call to frailtyCmprsk. |
level |
significance level of confidence interval. Default is 95%. |
len |
the total field width. Default is 6. |
d |
the desired number of digits after the decimal point. Default of 6 digits is used. |
lab |
label of printed results. |
... |
other unused arguments. |
Prints HR and its confidence intervals. Confidence level is allowed (level argument).
frailtyCmprsk
###--- Simple Weibull competing risks model ---###
###--- Weibull competing risks model with shared frailty between transitions ---###
data(CPRSKbmtcrr)
##--- Simple Weibull competing risks model with left truncation ---##
modCmprskFrailty <- frailtyCmprsk(
formulas = list(
Surv(Age, observed_time, Status, type = "mstate") ~ Sex,
~ Sex
),
data = CPRSKbmtcrr,
print.info = FALSE,
maxit = 100
)
#-- Confidence interval at 95% level (default)
summary(modCmprskFrailty)
#-- Confidence interval at 99% level
summary(modCmprskFrailty, level = 0.99)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.