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).
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),
...
)
ggplot2 object
output of one of the LoTTA functions (LoTTA_fuzzy_CONT, LoTTA_fuzzy_BIN) with all parameters sampled (the default option in those functions)
list of two quantiles that limit the range of cutoff values displayed on the plots
label of the x-axis
label of the y-axis of the bottom plot
label of the y-axis of the top plot
title of the plot
can be any value that is accepted in the argument axis.text in the theme function of ggplot2 package,refer to ggplot2 manual for the possible values; by default is changes font to a serif one axis.text=element_text(family = "sans",size = 10)
can be any value that is accepted in the argument text in the theme function of ggplot2 package,refer to ggplot2 manual for the possible values; by default is changes font to a serif one text=element_text(family='serif')
ggplot2 plot theme (see https://ggplot2.tidyverse.org/reference/ggtheme.html) possibly with additional arguments, it takes the default value plot.theme=theme_classic(base_size = 14),
can be any value that is accepted in the argument plot.title in the theme function of ggplot2 package,refer to ggplot2 manual for the possible values; by default it centers the plot title plot.title = element_text(hjust = 0.5)
other arguments of the theme function, refer to ggplot2 manual