Enhanced Bootstrap Results Summary
Source:R/summarize_bootstrap_results.R
summarize_bootstrap_results.RdCreates comprehensive output including formatted table with subgroup footnote, diagnostic plots, bootstrap quality metrics, and detailed timing analysis.
Arguments
- sgharm
The selected subgroup object from forestsearch results. Can be:
Character vector of factor definitions (e.g., c("{age>=50}", "{nodes>=3}"))
List with
sgharmelement containing factor definitionsList with
sg.harm_labelelement (human-readable labels)
- boot_results
List. Output from forestsearch_bootstrap_dofuture()
- create_plots
Logical. Generate diagnostic plots (default: FALSE)
- est.scale
Character. "hr" or "1/hr" for effect scale
Value
List with components:
- table
gt table with treatment effects and subgroup footnote
- diagnostics
List of bootstrap quality metrics
- diagnostics_table_gt
gt table of diagnostics
- plots
List of ggplot2 diagnostic plots (if create_plots=TRUE)
- timing
List of timing analysis (if timing data available)
- subgroup_summary
List from summarize_bootstrap_subgroups()
Details
The table output includes a footnote displaying the identified subgroup
definition, analogous to the tab_estimates table from sg_tables.
This is achieved by extracting the subgroup definition from sgharm and
passing it to format_bootstrap_table.
See also
format_bootstrap_table for table creation
sg_tables for analogous main analysis tables
summarize_bootstrap_subgroups for subgroup stability analysis