consort | R Documentation |
CONSORT Flowchart
consort(
data,
initialN = 0,
notEligibleN = 0,
notEligibleText = "",
randomizedN = 0,
arm1Label = "Intervention",
arm1N = 0,
arm1ReceivedN = 0,
arm1LostN = 0,
arm1AnalyzedN = 0,
arm2Label = "Control",
arm2N = 0,
arm2ReceivedN = 0,
arm2LostN = 0,
arm2AnalyzedN = 0,
excludedText = ""
)
data |
The data as a data frame. |
initialN |
Total number assessed for eligibility |
notEligibleN |
Number not meeting eligibility criteria |
notEligibleText |
List of reasons for exclusion (comma separated) |
randomizedN |
Number randomized to interventions |
arm1Label |
. |
arm1N |
. |
arm1ReceivedN |
. |
arm1LostN |
. |
arm1AnalyzedN |
. |
arm2Label |
. |
arm2N |
. |
arm2ReceivedN |
. |
arm2LostN |
. |
arm2AnalyzedN |
. |
excludedText |
Reasons for post-randomization exclusions (comma separated) |
A results object containing:
results$todo | a html | ||||
results$summary | a table | ||||
results$plot | an image | ||||
results$text | a preformatted | ||||
Tables can be converted to data frames with asDF
or as.data.frame
. For example:
results$summary$asDF
as.data.frame(results$summary)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.