Main predictive BATTing function
batting.pred(
dataset,
ids,
yvar,
censorvar,
trtvar,
type,
class.wt,
xvar,
n.boot,
des.res,
min.sigp.prcnt
)a signature rule consisting of variable name, direction, optimal cutpoint and the corresponding p-value.
input dataset in data frame
training indices
response variable name
censoring variable name 1:event; 0: censor.
treatment variable name
"c" continuous; "s" survival; "b" binary
vector of length 2 used to weight the accuracy score , useful when there is class imbalance in binary data defaults to c(1,1)
name of predictor for which cutpoint needs to be obtained
number of bootstraps for BATTing step.
the desired response. "larger": prefer larger response. "smaller": prefer smaller response.
desired proportion of signature positive group size for a given cutoff.
Main predictive BATTing function