View source: R/rdd_data_methods.R
as.lm | R Documentation |
Convert a rdd object to lm
as.lm(x)
x |
An object to convert to lm |
An object of class lm
as.npreg
which converts rdd_reg
objects into npreg
from package np
.
data(house)
house_rdd <- rdd_data(y=house$y, x=house$x, cutpoint=0)
reg_para <- rdd_reg_lm(rdd_object=house_rdd)
reg_para_lm <- as.lm(reg_para)
reg_para_lm
plot(reg_para_lm, which=4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.