
Last chance! 50% off unlimited learning
Sale ends in
Subsection
which can be added to an object of class PresentationModel
.
Subsection(by)
Subsection
are used in objects of class PresentationModel
to define how the results will be presented in the report. If a Subsection
object is added to a PresentationModel
object, the report will have subsections according to the parameter defined in the by
argument. A single object of class Subsection
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"
A object of class Subsection
must be added to an object of class PresentationModel
only if a Section
object has been defined.
PresentationModel
.
# Reporting
presentation.model = PresentationModel() +
Section(by = "outcome.parameter") +
Subsection(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
# and within each section, a subsection will be created for each sample size.
Run the code above in your browser using DataLab