LoTTA_plot_effect_DIS {LoTTA} | R Documentation |
Function that visualizes the impact of the cutoff location on the treatment effect estimate. It plots too figures. The bottom figure depicts the posterior density of the cutoff location. The top figure depicts the box plot of the treatment effect given the cutoff point. If the prior on the cutoff location was discrete each box corresponds to a distinct cutoff point. If the prior was continuous each box correspond to an interval of cutoff values (the number of intervals can be changed through nbins).
Description
Function that visualizes the impact of the cutoff location on the treatment effect estimate. It plots too figures. The bottom figure depicts the posterior density of the cutoff location. The top figure depicts the box plot of the treatment effect given the cutoff point. If the prior on the cutoff location was discrete each box corresponds to a distinct cutoff point. If the prior was continuous each box correspond to an interval of cutoff values (the number of intervals can be changed through nbins).
Usage
LoTTA_plot_effect_DIS(
LoTTA_posterior,
probs = c(0.025, 0.975),
x_lab = "Cutoff location",
y_lab1 = "Treatment effect",
y_lab2 = "Density of cutoff location",
title = "Cutoff location vs. Treatment effect",
axis.text = element_text(family = "sans", size = 10),
text = element_text(family = "serif"),
plot.theme = theme_classic(base_size = 14),
plot.title = element_text(hjust = 0.5),
...
)
Arguments
LoTTA_posterior |
|
probs |
|
x_lab |
|
y_lab1 |
|
y_lab2 |
|
title |
|
axis.text |
|
text |
|
plot.theme |
|
plot.title |
|
... |
|
Value
ggplot2 object