Prints out tables for report out of data frame p.df, which is the result of the chi.2.exp function. Bonferroni's method is used here, which is used to correct for multiple comparisons
1 2 3 4 5 6 | afh.tab(x, alpha = 0.05, outcome = "outcome", exposure = "exposure",
p.value = "p.value", craemer = "craemer", df = "df", n = "n",
statistic = "statistic", lateX = TRUE, markDown = FALSE,
warnings = "warnings", sonder.warnings = TRUE, geen = "None",
tp = "H", tabdir = NULL, verbose = FALSE, bonferroni = TRUE,
latSave = TRUE)
|
x |
Data frame, which is the outcome of chi.2.exp |
alpha |
Numeric to be used in Bonferroni |
outcome |
Character vector referring to the column containing outcomes |
exposure |
Character vector referring to the column containing exposures |
p.value |
Character vector referring to the column containing the probability value |
craemer |
Character vector referring to the column containing creamer values |
df |
Character vector referring to the column containing degrees of freedom |
n |
Character vector referring to the column containing the total number of observations |
statistic |
Character vector referring to the column containing the calculated chi2 statistic |
lateX |
Logical that prints a LaTeX table if TRUE |
markDown |
Logical that creates a table for use in MarkDown |
warnings |
Character referring to the column containing warnings |
sonder.warnings |
Logical referring to no warnings being present if TRUE |
geen |
Character vector to indicating that no warnings are present |
tp |
Character vector for the table placement |
tabdir |
Directory of the table |
verbose |
Display function messages |
bonferroni |
Logical that makes a bonferroni adjustment when TRUE |
latSave |
Logical that saves the tables in the Tabelle forder in your working directory |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.