View source: R/summary_to_gt.R
summary_to_gt | R Documentation |
Converts tables created using boot_summary
and censboot_summary
to nicely formatted gt
tables.
summary_to_gt(summary_table, decimals = 3, conf = "95 % CI")
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". |
A gt table.
# Bootstrap summary of a linear model for mtcars:
model <- lm(mpg ~ hp + vs, data = mtcars)
boot_summary(model, R = 99) |> summary_to_gt()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.