as.lm: Convert a rdd object to lm

Description

Convert a rdd object to lm

Usage

1
as.lm(x)

Arguments

x

An object to convert to lm

Value

An object of class lm

See Also

as.npreg which converts rdd_reg objects into npreg from package np.

Examples

1
2
3
4
5
6
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)

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.