summary_to_flextable {boot.pval} | R Documentation |
Convert Bootstrap Summary Tables to flextable Objects
Description
Converts tables created using boot_summary
and censboot_summary
to nicely formatted flextable
tables.
Usage
summary_to_flextable(summary_table, decimals = 3, conf = "95 % CI")
Arguments
summary_table |
A table created using |
decimals |
The number of decimals to print for estimates and confidence intervals. The default is 3. |
conf |
The text at the top of the confidence interval column in the gt table. The default is "95 % CI". |
Value
A flextable object.
Examples
# Bootstrap summary of a linear model for mtcars:
model <- lm(mpg ~ hp + vs, data = mtcars)
boot_summary(model, R = 99) |> summary_to_flextable()
# Export to Word:
## Not run:
boot_summary(model, R = 99) |>
summary_to_flextable() |>
flextable::save_as_docx(path = "my_table.docx")
## End(Not run)
[Package boot.pval version 0.5 Index]