crrwald.test | R Documentation |
crr
model coefficientsWald test for crr
model coefficients
crrwald.test(object, terms)
object |
an object of class |
terms |
a list (optionally named) giving the indices of the
coefficients to test; a list of length Alternatively, a (named) vector (or list) of character strings can be
used which will |
wald.test
; crrfit
; crrFits
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'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.