View source: R/summarize_bootstrap_results.R
| summarize_bootstrap_results | R Documentation |
Creates comprehensive output including formatted table with subgroup footnote, diagnostic plots, bootstrap quality metrics, and detailed timing analysis.
summarize_bootstrap_results(
sgharm,
boot_results,
create_plots = FALSE,
est.scale = "hr",
digits = 2
)
sgharm |
The selected subgroup object from forestsearch results. Can be:
|
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 |
digits |
Integer or NULL. Decimal places for display formatting of
numeric columns in the rendered table (per-arm summaries, Diff,
effect estimate CI, bias-corrected CI). Default 2. When set, the
formatted strings in |
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.
List with components:
gt table with treatment effects and subgroup footnote
List of bootstrap quality metrics
gt table of diagnostics
List of ggplot2 diagnostic plots (if create_plots=TRUE)
List of timing analysis (if timing data available)
List from summarize_bootstrap_subgroups()
format_bootstrap_table for table creation
sg_tables for analogous main analysis tables
summarize_bootstrap_subgroups for subgroup stability analysis
## Not run:
library(survival)
df <- survival::gbsg
df$grade3 <- as.integer(df$grade == "3")
fs <- forestsearch(df,
confounders.name = c("age", "meno", "size", "grade3", "nodes", "pgr", "er"),
outcome.name = "rfstime", treat.name = "hormon", event.name = "status")
fs_bc <- forestsearch_bootstrap_dofuture(fs, nb_boots = 100)
summaries <- summarize_bootstrap_results(fs$sg.harm, fs_bc)
summaries$table
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.