Learn R Programming

forestsearch (version 0.1.0)

sg_consistency_out: Output Subgroup Consistency Results

Description

Returns the top subgroup(s) and recommended treatment flags.

Usage

sg_consistency_out(
  df,
  result_new,
  sg_focus,
  index.Z,
  names.Z,
  details = FALSE,
  plot.sg = FALSE,
  by.risk = 12,
  confs_labels
)

Value

List with results, subgroup definition, labels, flags, and group id.

Arguments

df

Data.frame. Original analysis data.

result_new

Data.table. Sorted subgroup results.

sg_focus

Character. Sorting focus criterion.

index.Z

Matrix. Subgroup factor indicators.

names.Z

Character vector. Factor column names.

details

Logical. Print details.

plot.sg

Logical. Plot subgroup curves.

by.risk

Numeric. Risk interval for plotting.

confs_labels

Character vector. Human-readable labels.