crrwald.test: Wald test for 'crr' model coefficients

View source: R/stat.R

crrwald.testR Documentation

Wald test for crr model coefficients

Description

Wald test for crr model coefficients

Usage

crrwald.test(object, terms)

Arguments

object

an object of class crr

terms

a list (optionally named) giving the indices of the coefficients to test; a list of length n will perform n tests; default is an overall test and each coefficient individually

Alternatively, a (named) vector (or list) of character strings can be used which will grep for each pattern in the coefficient names; patterns that match multiple terms will be tested as a group, and only one character string per test will be used

See Also

wald.test; crrfit; crrFits

Examples

crrs <- crr2(Surv(futime, event(censored) == death) ~
               age + sex + abo, transplant)

## default is to test all estimates overall and individually
crrwald.test(crrs[[1L]])
summary(crrs[[1]])$coef[, 'p-value']


## identical ways to call crrwald.test
crrwald.test(crrs[[1L]], list(overall = 1:5, Age = 1,
                              Sex = 2, ABO = 3:5))

crrwald.test(crrs[[1L]], c(overall = '.', Age = 'age', ## or list()
                           Sex = 'sex', ABO = 'abo'))


raredd/cmprsk2 documentation built on March 29, 2024, 5:34 a.m.