ROC: ROC curves

Description Usage Arguments Value Examples

View source: R/ROC.R

Description

ROC curves

Usage

1
ROC(train, test, FittingFunction, time, covariates, ...)

Arguments

train

a data.frame which includes follow up time, event, and covariates. In a k-fold cross validation this is a sample proportion (k-1)/k of the original data set.

test

a data.frame which includes follow up time, event, and covariates. In a k-fold cross validation this is a sample proportion 1/k of the original data set.

FittingFunction

a function which returns list of survival probabilities of individuals where each element in the list represent a specific time point.

time

a numeric value specifying at what time survival probability is to be calculated.

covariates

character vector specifying the names of covariates

by

a numeric value specifying the spacing between values in the proportion vector with lower and upper values from xlim

Value

The function returns a data frame of the proportion that had an event for a given survival probability including confidence intervals

Examples

1
ROC(train)

sor16/survivalValidation documentation built on May 30, 2019, 6:32 a.m.