Generate a summary table from besthr results
besthr_table.RdCreates a publication-ready summary table containing group statistics, confidence intervals, and optionally effect sizes and significance.
Arguments
- hrest
An hrest object from
estimate- format
Output format: "tibble" (default), "markdown", "html", or "latex"
- digits
Number of decimal places for rounding (default 2)
- include_significance
Logical, whether to include significance stars (default FALSE)
Examples
d <- make_data()
hr <- estimate(d, score, group)
besthr_table(hr)
#> # A tibble: 2 × 6
#> group n mean_rank ci_low ci_high effect_size
#> <chr> <int> <dbl> <dbl> <dbl> <dbl>
#> 1 A 10 13.8 NA NA NA
#> 2 B 10 7.15 4.85 9.39 -6.7
besthr_table(hr, format = "markdown")
#> [1] "| group | n | mean_rank | ci_low | ci_high | effect_size |\n| --- | --- | --- | --- | --- | --- |\n| A | 10 | 13.85 | NA | NA | NA |\n| B | 10 | 7.15 | 4.85 | 9.39 | -6.7 |"