
Last chance! 50% off unlimited learning
Sale ends in
Print a cgPairedDifferenceDescriptiveTable
object, which contains a table of
quantiles and other summary statistics of the data from a
cgPairedDifferenceData
object.
# S4 method for cgPairedDifferenceDescriptiveTable
print(x, digits = NULL, title = NULL, endptname = NULL, ...)
print.cgPairedDifferenceDescriptiveTable
returns
invisible
. The main purpose is the side
effect of printing to the current output connection, which is
typically the console.
A cgPairedDifferenceDescriptiveTable
object, typically created by
descriptiveTable.cgPairedDifferenceData
.
The number of decimal places to use in the output. If NULL
, then
the number of decimal places is taken from the digits
value
in the settings
slot of the cgPairedDifferenceDescriptiveTable
object.
The title printed out with the table. If NULL
,
it is set to be "Descriptive Table of"
the analysisname
value taken from the settings
slot of the
cgPairedDifferenceDescriptiveTable
object.
The endpoint name of the data summarized in the table. If NULL, it is set to
the endptname
value taken from the settings
slot of the
cgPairedDifferenceDescriptiveTable
object.
Additional arguments. None are currently defined for this method.
Bill Pikounis [aut, cre, cph], John Oleynick [aut], Eva Ye [ctb]
The object is printed using a mix of cat
and print
calls. See
cgPairedDifferenceDescriptiveTable
for details of the contents
and other object slots.
cgPairedDifferenceDescriptiveTable
data(anorexiaFT)
anorexiaFT.data <- prepareCGPairedDifferenceData(anorexiaFT, format="groupcolumns",
analysisname="Anorexia FT",
endptname="Weight",
endptunits="lbs",
expunitname="Patient",
digits=1,
logscale=TRUE)
## Next two calls are equivalent
descriptiveTable(anorexiaFT.data)
print(descriptiveTable(anorexiaFT.data, display="none"))
## A change in title
print(descriptiveTable(anorexiaFT.data, display="none"),
title="Quantiles and Summary Statistics")
Run the code above in your browser using DataLab