MeanComparisonsTable: MeanComparisonsTable

View source: R/meancomparisonstable.R

MeanComparisonsTableR Documentation

MeanComparisonsTable

Description

Creates a pretty formattable table for mean comparisons.

Usage

MeanComparisonsTable(
  means,
  zs,
  ps,
  r.squared,
  overall.p,
  column.names,
  footer,
  title = "",
  subtitle = "",
  p.cutoff = 0.05
)

Arguments

means

The means to be shown on the table.

zs

Z-Statistics. Only used to determine the color of the fonts.

ps

P-Values associated with each mean. Used to determine whether or not to color the cells.

r.squared

The r-squared value for the regression predicting the row variable by the columns.

overall.p

The P-value for the regression (e.g., an ANOVA F-Test for a linear model).

column.names

The names to put on the columns of the table (other than for the R-Squared and overall P).

footer

Text to place in the footer of the table.

title

The title for the table.

subtitle

Subtitle for the table.

p.cutoff

The alpha level used when formatting the p-value column.

References

This is based on code written by Kenton Russell.


NumbersInternational/flipFormat documentation built on Feb. 26, 2024, 5:36 a.m.