View source: R/meancomparisonstable.R
MeanComparisonsTable | R Documentation |
Creates a pretty formattable table for mean comparisons.
MeanComparisonsTable(
means,
zs,
ps,
r.squared,
overall.p,
column.names,
footer,
title = "",
subtitle = "",
p.cutoff = 0.05
)
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. |
This is based on code written by Kenton Russell.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.