# Exploratory Subgroup Identification in Clinical Trials with Survival Endpoints

## Documentation for package ‘forestsearch’ version 0.1.0

- DESCRIPTION file.
- User guides, package vignettes and other documentation.
- Package NEWS.

## Help Pages

build_classification_table | Build Classification Rate Table from Simulation Results
build_estimation_table | Build Estimation Properties Table from Simulation Results
calibrate_cens_adjust | Calibrate Censoring Adjustment to Match DGM Reference Distribution
calibrate_k_inter | Calibrate k_inter for Target Subgroup Hazard Ratio
check_censoring_dgm | Diagnose Censoring Consistency Between DGM Source Data and Simulated Data
compute_detection_probability | Compute Probability of Detecting True Subgroup
compute_dgm_cde | Compute and Attach CDE Values to a DGM Object
cox_ahr_cde_analysis | Comprehensive Wrapper for Cox Spline Analysis with AHR and CDE Plotting
cox_cs_fit | Fit Cox Model with Cubic Spline for Treatment Effect Heterogeneity
cox_summary | Cox model summary for subgroup (OPTIMIZED)
create_dgm_for_mrct | Create Data Generating Mechanism for MRCT Simulations
create_forest_theme | Create Forest Plot Theme with Size Controls
create_summary_table | Create Enhanced Summary Table for Baseline Characteristics
cv_metrics_tables | Create Metrics Tables for Cross-Validation Results
cv_summary_tables | Create Summary Tables from forestsearch_KfoldOut Results
figure_note | Generate Figure Note for Quarto/RMarkdown
forestsearch | ForestSearch: Exploratory Subgroup Identification
forestsearch_bootstrap_dofuture | ForestSearch Bootstrap with doFuture Parallelization
forestsearch_Kfold | ForestSearch K-Fold Cross-Validation
forestsearch_KfoldOut | ForestSearch K-Fold Cross-Validation Output Summary
forestsearch_tenfold | ForestSearch Repeated K-Fold Cross-Validation
format_oc_results | Format Operating Characteristics Results as GT Table
generate_aft_dgm_flex | Generate Synthetic Survival Data using AFT Model with Flexible Subgroups
generate_detection_curve | Generate Detection Probability Curve
gg_forest | ggplot2 / patchwork forest plot
grf.subg.harm.survival | GRF Subgroup Identification for Survival Data
interpret_estimation_table | Generate Narrative Interpretation of Estimation Properties
mrct_region_sims | MRCT Regional Subgroup Simulation
plot.forestsearch | Plot ForestSearch Results
plot_detection_curve | Plot Detection Probability Curve
plot_km_band_forestsearch | Plot Kaplan-Meier Survival Difference Bands for ForestSearch Subgroups
plot_sg_weighted_km | Plot Weighted Kaplan-Meier Curves for ForestSearch Subgroups
plot_spline_treatment_effect | Plot Spline Treatment Effect Function
plot_subgroup_results_forestplot | Plot Subgroup Results Forest Plot
print.cox_ahr_cde | Print method for cox_ahr_cde objects
print.forestsearch | Print Method for forestsearch Objects
print.fs_kfold | Print Method for K-Fold CV Results
print.fs_tenfold | Print Method for Repeated K-Fold CV Results
print.gbsg_dgm | Print Method for gbsg_dgm Objects
render_forestplot | Render ForestSearch Forest Plot
render_reference_table | Render Reference Simulation Table as gt
run_simulation_analysis | Run One Simulation Replicate
select_best_subgroup | Select best subgroup based on criterion
setup_gbsg_dgm | Set Up a GBSG-Based AFT Data Generating Mechanism
sg_tables | Enhanced Subgroup Summary Tables (gt output)
simulate_from_dgm | Simulate Survival Data from AFT Data Generating Mechanism
subgroup.consistency | Evaluate Subgroup Consistency
summarize_bootstrap_events | Summarize Bootstrap Event Counts
summarize_bootstrap_results | Enhanced Bootstrap Results Summary
summarize_simulation_results | Summarize Simulation Results
summary.cox_ahr_cde | Summary method for cox_ahr_cde objects
summary.forestsearch | Summary Method for forestsearch Objects
validate_k_inter_effect | Validate k_inter Effect on HR Heterogeneity