View source: R/bootstrap_dofuture_main.R
| print.fs_bootstrap | R Documentation |
Prints a concise but informative summary of an fs_bootstrap
object returned by forestsearch_bootstrap_dofuture.
Covers identification rate, agreement with the primary subgroup,
top identified subgroups, and bias-corrected effect estimates.
## S3 method for class 'fs_bootstrap'
print(x, top_n = 3L, ...)
x |
An |
top_n |
Integer. Maximum number of top identified subgroups to print. Default 3. |
... |
Additional arguments (ignored; present for S3 consistency). |
The print method is deliberately richer than the corresponding
print.fs_kfold / print.fs_tenfold methods because the
bootstrap is the primary inferential machinery of the package, while
the CV routines are complementary diagnostics. For the full
per-factor breakdown, consistency distribution, size distribution,
and GRF cut tabulation, call summarize_bootstrap_subgroups.
Invisibly returns x.
forestsearch_bootstrap_dofuture to produce the object.
summarize_bootstrap_subgroups for full tabulations.
## Not run:
fs <- forestsearch(
df.analysis = mydata,
confounders.name = c("age", "sex", "biomarker"),
outcome.name = "time", event.name = "status", treat.name = "treat"
)
fs_bc <- forestsearch_bootstrap_dofuture(fs, nb_boots = 500)
print(fs_bc) # rich default summary
print(fs_bc, top_n = 5)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.