subgrp_perf {BioPred} | R Documentation |
Subgroup Performance Evaluation for Prognostic Cases
Description
This function evaluates subgroup performance based on different types of response variables.
Usage
subgrp_perf(
yvar,
censorvar = NULL,
grpvar,
grpname,
xvars.adj = NULL,
data,
type,
yvar.display = yvar,
grpvar.display = grpvar
)
Arguments
yvar |
The response variable name. |
censorvar |
(Optional) The censoring variable name (0-censored, 1-event). |
grpvar |
The subgroup variable name. |
grpname |
A vector of ordered subgroup names (values in the column of grpvar). |
xvars.adj |
(Optional) Other covariates to adjust when evaluating the performance. |
data |
The dataset containing the variables. |
type |
The type of response variable: "c" for continuous, "s" for survival, and "b" for binary. |
yvar.display |
Display name of the response variable. |
grpvar.display |
Display name of the group variable. |
Value
A list containing subgroup performance results including logrank p-value, median and mean survival, Cox model p-value, ANOVA p-value, and more based on the specified response variable type.
[Package BioPred version 1.0.1 Index]