CIndexTest: CIndexTest

Description Usage Arguments Value

View source: R/tools.R

Description

Tests for a variable the Improvement in C-Index of a Cox model

Usage

1
CIndexTest(formula, var, data, N = 10000, seed = 123, cores = 2, ...)

Arguments

formula

model formula with a Surv object on the left side

var

the name of variable to test with C-Index. Will be added to the formula if not included

data

the data frame for model fitting. Must contain all variables in the formula

N

number of permutations for the test, default to 10,000

cores

number of cores to use for permutation

Value

list with the original C-Index, the permutation C-Indices and the p-value (one sided, alternative="higher")


sagade/inf460 documentation built on Dec. 31, 2020, 3:15 a.m.