fitCuminc: Cumulative Incidences Curves

Description Usage Arguments Value See Also Examples

View source: R/fitAndTestCuminc.R

Description

Fits cumulative incidence function across different groups and risks.

Usage

1
fitCuminc(time, risk, group, cens = NULL)

Arguments

time

vector with times of the first event or follow-up, must be numeric.

risk

vector with type of event, can be numeric or factor/character.

group

vector with group variable, can be numeric or factor/character.

cens

value of 'risk' indicating censored observation (if NULL, the first value of 'risk' vector will be taken).

Value

list of length [(number of risks)*(number of groups) + 1], containing estimation of cumulative incidences curves for each risk and group. The last element of a list is a data.frame with results of a K-sample test, containing test statistic, p-value and degrees od freedom for each risk.

See Also

cuminc

Examples

1
fitCuminc(time = LUAD$time, risk = LUAD$event, group = LUAD$gender, cens = "alive")

geneticsMiNIng/cr17 documentation built on Sept. 16, 2019, 7:23 a.m.