Print Comparisons to the console or write the table to a file.
# S3 method for ctable
print(x, ...)split_ctable(x, max.rows = 35, keepVarTogether = TRUE, ...)
write.ctable(x, round = 2, percent = TRUE, quartile = TRUE,
cwidth = NULL, caption = NULL, footnote = NULL, byVarN = FALSE,
size = "\\normalsize", descripCombine = TRUE, oddsCombine = TRUE,
markSignificant = FALSE, statHeader = "Statistics", name = FALSE,
var.label = TRUE, level = TRUE, total = TRUE, descriptive = TRUE,
missing = FALSE, missing.perc = FALSE, testStat = TRUE, odds = FALSE,
pval = TRUE, oneLine = FALSE, pvalFormat = "default",
pvalArgs = list(), cat = getOption("lazyWeave_cat"), ...)
A ctable object to be printed or written
Other arguments to be passed to print
(for
print.ctable
or lazy.table
(for write.ctable
).
Currently none are implemented for print
. In split_ctable
,
any options in write.ctable
may also be included.
The maximum number of rows to be displayed on a page. Variable groups are forced to be kept together.
Determines if variables are kept together when splitting a table across mulitple pages. When a single variable has more levels than can remain on one printed page, this must be set to FALSE.
The number of decimal places to be displayed for numeric values.
Toggles if percentages or proportions are printed for categorical values
Toggles if quartiles or min and max are printed for numeric
values associated with the median
argument in conttable
A vector giving the width of each column in the body of the table. The number of columns is not always obvious, and this vector is not recycled. If the length is inappropriate, a warning message will be printed indicating the correct number of columns.
The name of the table.
A footnote for the table.
Toggles if the N per group in byVar
are printed in the
column headings.
A character string denoting the size of the text for the table. This must be latex code, for example "\normalsize" or "\small." Remember to use to backslashes!
Toggles if descriptive statistics are combined.
It is strongly recommended that this be left TRUE
as the appearance
is much better.
Toggles if odds ratios are combined with the lower up upper confidence limits.
Toggles if significant results are printed in bold text.
Character string giving the column heading for statistical summaries.
Toggles if the variable name is printed in the table.
Toggles if the variable label is printed in the table.
Toggles if the variable levels are printed in the table. This column is usually needed for categorical variables, and never needed for numeric variables.
Toggles if the totals column is printed in the table
Toggles if descriptive statistics are printed.
Toggles if the number of missing values are printed in the table.
Toggles if the percentage of missing values is printed in the table.
Toggles if the test statistics are printed.
Toggles if odds ratios are printed. Only relevant to numeric variables.
Toggles if the pvalue column is printed.
When true, binary variables are printed with only one line per variable. This does not affect the printing of numeric variable or variables with more than two levels.
Character string passed to pvalString
and determines
the pvalue style to be printed.
A list of additional arguments to be passed to pvalString
Logical. Determines if the output is returned as a character string
or returned via the cat
function (printed to console). The default
value is set by options()$lazyWeave_cat
. This argument allows for
selective override of the default.