Generates a demographic summary table for categorical covariates
summaryCat_IQRdataER.Rd
The table is generated in a report-ready format (when IQReport is used). The function allows a high level of customization and stratification of the table. Input data needs to be provided as a data.frame object. Important: only first occurrence of a covariate value in a subject will be considered for the generation of the table. This is also the case for potentially time varying covariates. The data.frame can contain a "catInfo" attribute in the same style as the IQRdataGENERAL object. This has to be formatted as data.frame and is not allowed to use factors!
summaryCat_IQRdataER(
data,
catInfoAdd = NULL,
catNames = NULL,
stratifyColumns = "STUDY",
stratifyOrder = NULL,
FLAGtotal = NULL,
SIGNIF = 3,
tableTitle = NULL,
footerAddText = NULL,
filename = NULL,
FLAGpatients = FALSE
)
Arguments
- data
data.frame object
- catInfoAdd
Same object as can be provided in creation of an IQRdataGENERAL object to define additional categorical covariates.
- catNames
Names of the categorical covariates, as defined as columns in the dataset for which information should be displayed in the table. If argument is not provided, information will be generated for all categorical covariates in the data object.
- stratifyColumns
A vector with names of columns that should be used for stratification of the table. Already available columns in the data object can be used or the user can add additional stratification columns that fit the intended purpose. NA entries in such columns will be ignored in the table generation.
- stratifyOrder
A list with vector entries. For each entry in stratifyColumns there should be one list entry. Each list entry should be a vector of the elements in the corresponding stratification column and specifying the order of appearance in the table. If not provided, the stratification will be done in order of appearance of the elements in the dataset.
- FLAGtotal
A vector of same length as stratifyColumns. An element TRUE means that for the corresponding strata also a TOTAL column will be generated. FALSE means that no TOTAL column will be generated.
- SIGNIF
Defines the number of significant digits for the percentage generation.
- tableTitle
String with the title for the generated table
String with additional text to add to a tables footer. Use "\<br\>" to allow generation of line breaks in Word reporting.
- filename
String with path/filename for export of table as text file.
- FLAGpatients
In the table it is possible to write "Subjects" or "Patients". If this flag is TRUE then "patients" will be used.
See also
Other IQRdataER:
addLabel_IQRaedataER()
,
createAEdata_IQRdataGENERAL()
,
exportXPT_IQRaedataER()
,
export_IQRaedataER()
,
load_IQRaedataER()
,
plotCorCat_IQRdataER()
,
plotCorCovCat_IQRdataER()
,
plotCorCov_IQRdataER()
,
plotIndivAE_IQRdataGENERAL()
,
print.IQRaedataER()
,
summaryCov_IQRdataER()
,
summaryN_IQRaedataER()
,
summary_IQRaedataER()