View source: R/sequential_batting.R
seqlr.find.cutoff.pred | R Documentation |
Find cutoff for predictive case.
seqlr.find.cutoff.pred(
data,
yvar,
censorvar,
xvar,
trtvar,
type,
class.wt,
dir,
nsubj,
min.sigp.prcnt
)
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. |
Find cutoff for predictive case.
the optimal score (p-value of subgroup*treatment interaction) for a predictor variable.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.