View source: R/independenceTest.R
independenceTest | R Documentation |
Non-parametric independence test for bivariate survival data
independenceTest(formula, data = NULL, weight = "independence")
formula |
a formula object, with the response on the left of a ~
operator, and the terms on the right. The response must be a
survival object as returned by the |
data |
a data.frame containing the variables in the model |
weight |
weight function for test. Default is 'independence' which is optimal for the Frank copula. Other options are 'dabrowska', 'atRisk', a weight matrix or a number (in which case the weight is constant). |
test statistic, SE and p-value for independence test.
Jeppe E. H. Madsen <jeppe.ekstrand.halkjaer@gmail.com>
Shih, Joanna H., and Thomas A. Louis. "Tests of independence for bivariate survival data." Biometrics (1996): 1440-1449.
dabrowska
library(survival)
data("diabetic")
independenceTest(Surv(time,status)~cluster(id), data = diabetic)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.