Learn R Programming

SubgrpID (version 0.12)

cv.pval: cv.pval

Description

p-value calculation for each iteration of cross validation.

Usage

cv.pval(yvar, censorvar = NULL, trtvar = NULL, data, type = "s")

Value

p-value based on response and prediction vector for each iteration.

Arguments

yvar

response variable name.

censorvar

censor-variable name.

trtvar

treatment variable name. For prognostic case trtvar=NULL.

data

dataset containing response and predicted output.

type

data type - "c" - continuous , "b" - binary, "s" - time to event - default = "c".

Details

p-value calculation for each iteration of cross validation.