cuminc_pairs | R Documentation |
cuminc
comparisonsEvaluate pairwise group differences in cumulative incidence with
cuminc
.
cuminc_pairs(
object,
data = NULL,
rho = 0,
cencode = NULL,
method = p.adjust.methods,
digits = 3L
)
object |
a |
data |
a data frame to use (ignored if |
rho , cencode |
passed to |
method |
p-value correction method (default is |
digits |
number of digits past the decimal point to keep |
## these two are equivalent since there are only two levels
form <- Surv(futime, event(censored)) ~ sex
cuminc_pairs(form, transplant)
cuminc2(form, transplant)$cuminc$Tests
## more useful in the case of three or more levels
form <- Surv(futime, event(censored)) ~ abo
cuminc_pairs(form, transplant)$p.value
cuminc2(form, transplant)$cuminc$Tests
tp <- transplant[transplant$abo %in% c('A', 'B', 'O'), ]
tp <- tp[tp$event %in% c('censored', 'ltx', 'death'), ]
ci <- cuminc2(form, tp)
ci[[1L]]$Tests
ciplot(ci)
cuminc_pairs(ci)$p.value$ltx
## unexported functions useful for extracting/formatting
cmprsk2:::pw_pval(ci, which = 2)
cmprsk2:::pw_text(ci, which = 'ltx')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.