Skip to contents

Summarize a list returned by steppedwedge::analysis()

Usage

# S3 method for class 'sw_analysis'
print(x, ...)

Arguments

x

A list returned by steppedwedge::analysis()

...

Additional arguments

Value

A summary of the analysis object, including an estimate and 95

Examples

# 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