View source: R/apa_print_glht.R
| apa_print.glht | R Documentation | 
These methods are not properly tested and should be considered experimental.
## S3 method for class 'glht'
apa_print(x, test = multcomp::adjusted(), ...)
## S3 method for class 'summary.glht'
apa_print(x, conf.int = 0.95, in_paren = FALSE, ...)
x | 
 Object  | 
test | 
 Function. Computes p-values (adjusted for multiple comparisons).  | 
... | 
 Further arguments to pass to   | 
conf.int | 
 Numeric. If   | 
in_paren | 
 Logical. Whether the formatted string is to be reported in
parentheses. If   | 
apa_print()-methods return a named list of class apa_results containing the following elements:
estimate | 
 One or more character strings giving point estimates, confidence intervals, and confidence level. A single string is returned in a vector; multiple strings are returned as a named list. If no estimate is available the element is   | 
statistic | 
 One or more character strings giving the test statistic, parameters (e.g., degrees of freedom), and p-value. A single string is returned in a vector; multiple strings are returned as a named list. If no estimate is available the element is   | 
full_result | 
 One or more character strings comprised 'estimate' and 'statistic'. A single string is returned in a vector; multiple strings are returned as a named list.  | 
table | 
 A   | 
Column names in apa_results_table are standardized following the broom glossary (e.g., term, estimate conf.int, statistic, df, df.residual, p.value). Additionally, each column is labelled (e.g., $\hat{\eta}^2_G$ or $t$) using the tinylabels package and these labels are used as column names when an apa_results_table is passed to apa_table().
Other apa_print: 
apa_print(),
apa_print.BFBayesFactor(),
apa_print.aov(),
apa_print.emmGrid(),
apa_print.htest(),
apa_print.list(),
apa_print.lm(),
apa_print.lme(),
apa_print.merMod()
   # From the multcomp::glht() examples:
   library(multcomp)
   amod <- aov(breaks ~ tension, data = warpbreaks)
   glht_out <- glht(amod, linfct = mcp(tension = "Tukey"))
   apa_print(glht_out)
  # In this example, because degrees of freedom are equal across all rows
  # of the output, it is possible to move that information to the variable
  # labels. This is useful if a compact results table is required:
  df_into_label(apa_print(glht_out))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.