Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Table

Table object


Description

This function creates an object of class Table which can be added to an object of class PresentationModel.

Usage

Table(by)

Arguments

by

defines the parameter to sort the table in the report.

Details

Objects of class Table are used in objects of class PresentationModel to define how the results will be sorted in the results tables of the report. If a Table object is added to a PresentationModel object, the report will generate tables sorted according to the parameter defined in the by argument. A single object of class Table can be added to an object of class PresentationModel.

One or several parameters can be defined in the by argument:

  • "sample.size"

  • "event"

  • "outcome.parameter"

  • "design.parameter"

  • "multiplicity.adjustment"

References

See Also

Examples

# Reporting
presentation.model = PresentationModel() +
  Section(by = "outcome.parameter") +
  Table(by = "sample.size") +
  CustomLabel(param = "sample.size",
              label= paste0("N = ",c(50, 55, 60, 65, 70))) +
  CustomLabel(param = "outcome.parameter",
              label=c("Standard 1", "Standard 2"))

# In this report, one section will be created for each outcome parameter assumption.
# The tables presented within each section will be sorted by sample size.

Mediana

Clinical Trial Simulations

v1.0.8
GPL-2
Authors
Gautier Paux, Alex Dmitrienko.
Initial release
2019-05-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.