local_coxph_test | R Documentation |
Checks the null hypothesis: C * beta.hat = c, i.e., the local p-value of one or more factors in a model; can also be used to test more comlex hypotheses.
local_coxph_test(object, pos, C = NULL, d = NULL, digits = 3)
object |
survival object of class |
pos |
vector of positions of |
C , d |
|
digits |
number of significant figures in output |
http://www.ddiez.com/teac/surv/
library('survival')
fit <- coxph(Surv(time, status) ~ sex + ph.ecog, data = cancer)
## compare to summary(fit)
local_coxph_test(fit)
local_coxph_test(fit, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.