fixcut_sur {BioPred} | R Documentation |
Fixed Cutoff Analysis for Individual Biomarker Associated with Survival Outcome
Description
This function conducts fixed cutoff analysis for Individual Biomarker Associated with survival outcome variables.
Usage
fixcut_sur(
yvar,
censorvar,
xvar,
dir,
cutoffs,
data,
method = "logrank",
yvar.display = yvar,
xvar.display = xvar,
vert.x = FALSE
)
Arguments
yvar |
Survival response variable name. |
censorvar |
Censoring variable. 0 indicates censored, 1 indicates an event. |
xvar |
Biomarker name. |
dir |
Cutoff direction for the desired subgroup. Options are ">", ">=", "<", or "<=". |
cutoffs |
A vector of candidate cutoffs. |
data |
The dataset containing the variables. |
method |
Method for cutoff selection. Currently only supports "logrank". - "logrank": Minimizes the logrank test p-value. |
yvar.display |
Display name of the response variable. |
xvar.display |
Display name of the predictor variable. |
vert.x |
Whether to display the cutoff in a 90-degree angle when plotting (saves space). |
Value
A list containing statistical summaries, selected cutoff statistics, selected cutoff value, group statistics, and a ggplot object for visualization.