View source: R/print_sw_analysis.R
print.sw_analysis | R Documentation |
Summarize a list returned by steppedwedge::analysis()
## S3 method for class 'sw_analysis'
print(x, ...)
x |
A list returned by steppedwedge::analysis() |
... |
Additional arguments |
A summary of the analysis object, including an estimate and 95
# Load data
test_data <- load_data(time ="period", cluster_id = "cluster", individual_id = NULL,
treatment = "trt", outcome = "outcome_bin", data = sw_data_example)
# Analysis example: TATE estimand for exposure times 1 through 4
results_tate <- analyze(dat = test_data, method = "mixed", estimand_type = "TATE",
estimand_time = c(1, 4), exp_time = "ETI", family = poisson)
results_tate
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.