cv.logistic.interaction: A function for CV in logistic AIM with interaction.

Description Usage Arguments Value

Description

A function for CV in logistic AIM with interaction.

Usage

1
2
cv.logistic.interaction(x, trt, y, K.cv = 5, num.replicate = 1, nsteps,
  mincut = 0.1, backfit = F, maxnumcut = 1, dirp = 0, weight = 1)

Arguments

x

the predictor matrix.

trt

the treatment indicator vector.

y

the vector of the binary response variable.

K.cv

number of folds for CV.

num.replicate

number of CV iterations.

nsteps

the maximum number of binary rules to be included in the index.

mincut

the minimum cutting proportion for the binary rule at either end. It typically is between 0 and 0.2. It is the parameter in the functions of AIM package.

backfit

a logical argument indicating whether the existing cutpoints are adjusted after including new binary rule.

maxnumcut

the maximum number of binary splits per predictor.

dirp

a vector for pre-specified direction of the binary split for each of the predictors. 0 represents "no pre-given direction"; 1 represents "(x>cut)"; -1 represents "(x<cut)". Alternatively, "dirp=0" represents that there is no pre-given direction for any of the predictor.

weight

a positive value for the weight given to outcomes. "weight=0" means that all observations are equally weighted.

Value

returns optimal number of binary rules based on CV along with CV score test statistics and pre-validated score test statistics for the treatment*index interaction and prevalidated fits for individual observation.


SubgrpID documentation built on May 2, 2019, 8:02 a.m.