plot_design | R Documentation |
Plot stepped wedge design
plot_design(dat)
dat |
A dataframe containing the stepped wedge trial data. |
A list with a plot of the stepped wedge design.
# Load data
example_data <- load_data(time ="period", cluster_id = "cluster", individual_id = NULL,
treatment = "trt", outcome = "outcome_cont", data = sw_data_example)
# Plot design
plot_design(example_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.