
Last chance! 50% off unlimited learning
Sale ends in
Draw a plot showing the LATE estimates depending on multiple bandwidths
plotSensi(
rdd_regobject,
from,
to,
by = 0.01,
level = 0.95,
output = c("data", "ggplot"),
plot = TRUE,
...
)# S3 method for rdd_reg_np
plotSensi(
rdd_regobject,
from,
to,
by = 0.05,
level = 0.95,
output = c("data", "ggplot"),
plot = TRUE,
device = c("ggplot", "base"),
vcov. = NULL,
...
)
# S3 method for rdd_reg_lm
plotSensi(
rdd_regobject,
from,
to,
by = 0.05,
level = 0.95,
output = c("data", "ggplot"),
plot = TRUE,
order,
type = c("colour", "facet"),
...
)
object of a RDD regression, from either rdd_reg_lm
or rdd_reg_np
First bandwidth point. Default value is max(1e-3, bw-0.1)
Last bandwidth point. Default value is bw+0.1
Increments in the from
to
sequence
Level of the confidence interval
Whether to return (invisibly) the data frame containing the bandwidths and corresponding estimates, or the ggplot object
Whether to actually plot the data.
Whether to draw a base or a ggplot graph.
Specific covariance function to pass to coeftest. See help of package sandwich
For parametric models (from rdd_reg_lm
), the order of the polynomial.
For parametric models (from rdd_reg_lm
) whether different orders are represented as different colour or as different facets.
Further arguments passed to specific methods
A data frame containing the bandwidths and corresponding estimates and confidence intervals.
# NOT RUN {
data(house)
house_rdd <- rdd_data(y=house$y, x=house$x, cutpoint=0)
#Non-parametric estimate
bw_ik <- rdd_bw_ik(house_rdd)
reg_nonpara <- rdd_reg_np(rdd_object=house_rdd, bw=bw_ik)
plotSensi(reg_nonpara)
plotSensi(reg_nonpara, device='base')
#Parametric estimate:
reg_para_ik <- rdd_reg_lm(rdd_object=house_rdd, order=4, bw=bw_ik)
plotSensi(reg_para_ik)
plotSensi(reg_para_ik, type='facet')
# }
Run the code above in your browser using DataLab