independenceTest: Non-parametric independence test for bivariate survival data

View source: R/independenceTest.R

independenceTestR Documentation

Non-parametric independence test for bivariate survival data

Description

Non-parametric independence test for bivariate survival data

Usage

independenceTest(formula, data = NULL, weight = "independence")

Arguments

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 Surv function. The RHS must contain a 'cluster' term

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).

Value

test statistic, SE and p-value for independence test.

Author(s)

Jeppe E. H. Madsen <jeppe.ekstrand.halkjaer@gmail.com>

References

Shih, Joanna H., and Thomas A. Louis. "Tests of independence for bivariate survival data." Biometrics (1996): 1440-1449.

See Also

dabrowska

Examples

library(survival)
data("diabetic")
independenceTest(Surv(time,status)~cluster(id), data = diabetic)

Jeepen/biSurv documentation built on Sept. 30, 2023, 3:55 a.m.