seqlr.find.cutoff.pred {SubgrpID}R Documentation

seqlr.find.cutoff.pred

Description

Find cutoff for predictive case.

Usage

seqlr.find.cutoff.pred(
  data,
  yvar,
  censorvar,
  xvar,
  trtvar,
  type,
  class.wt,
  dir,
  nsubj,
  min.sigp.prcnt
)

Arguments

data

input data frame.

yvar

response variable name.

censorvar

censoring variable name.

xvar

name of predictor for which cutpoint needs to be obtained.

trtvar

treatment variable name.

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).

dir

direction of cut.

nsubj

number of subjects.

min.sigp.prcnt

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

Details

Find cutoff for predictive case.

Value

the optimal score (p-value of subgroup*treatment interaction) for a predictor variable.


[Package SubgrpID version 0.12 Index]