# run spec analysis
results <- run_specs(example_data,
y = c("y1", "y2"),
x = c("x1", "x2"),
model = "lm",
controls = c("c1", "c2"),
subset = list(group1 = unique(example_data$group1)))
# plot boxplot comparing specific choices
plot_summary(results, choices = c("subsets", "controls", "y"))
Run the code above in your browser using DataLab