batting.prog: batting.prog

View source: R/sequential_batting.R

batting.progR Documentation

batting.prog

Description

Main prognostic BATTing function

Usage

batting.prog(
  dataset,
  ids,
  yvar,
  censorvar,
  type,
  class.wt,
  xvar,
  n.boot,
  des.res,
  min.sigp.prcnt
)

Arguments

dataset

input dataset in data frame

ids

training indices

yvar

response variable name

censorvar

censoring variable name 1:event; 0: censor.

type

"c" continuous; "s" survival; "b" binary

class.wt

vector of length 2 used to weight the accuracy score , useful when there is class imbalance in binary data defaults to c(1,1)

xvar

name of predictor for which cutpoint needs to be obtained

n.boot

number of bootstraps for BATTing step.

des.res

the desired response. "larger": prefer larger response. "smaller": prefer smaller response.

min.sigp.prcnt

desired proportion of signature positive group size for a given cutoff.

Details

Main prognostic BATTing function

Value

a signature rule consisting of variable name, direction, optimal cutpoint and the corresponding p-value.


SubgrpID documentation built on May 29, 2024, 1:33 a.m.