
rdd_data(y, x, covar, cutpoint, z, labels, data)
x
, y
, and eventually vector covar
). Unused currently.x
and y
variables. If this is provided,
the column names can be entered directly for argument x
and y
rdd_data
, inheriting from data.frame
data(house)
rd<- rdd_data(x=house$x, y=house$y, cutpoint=0)
rd2 <- rdd_data(x=x, y=y, data=house, cutpoint=0)
# The print() function is the same as the print.data.frame:
rd
# The summary() and plot() function are specific to rdd_data
summary(rd)
plot(rd)
Run the code above in your browser using DataLab