cs_results <- antidepressants |>
cs_anchor(
patient,
measurement,
mom_di,
mid_improvement = 8,
target = "group",
group = condition,
effect = "between",
post = "After"
)
# Plot the results "as is"
plot(cs_results)
# Change the axis labels
plot(cs_results, x_lab = "Condition", y_lab = "Treatment Effect")
Run the code above in your browser using DataLab