abs_res: Absolute residuals of kernel regression of x on y.

Description Usage Arguments Details Value Note Author(s) Examples

View source: R/abs_res.R

Description

This internal function calls the kern function to implement kernel regression with the option residuals=TRUE and returns absolute residuals.

Usage

1
abs_res(x, y)

Arguments

x

vector of data on the dependent variable

y

vector of data on the regressor

Details

The first argument is assumed to be the dependent variable. If abs_res(x,y) is used, you are regressing x on y (not the usual y on x)

Value

absolute values of kernel regression residuals are returned.

Note

This function is intended for internal use.

Author(s)

Prof. H. D. Vinod, Economics Dept., Fordham University, NY

Examples

1
2
3
4
5
6
7
## Not run: 
set.seed(330)
x=sample(20:50)
y=sample(20:50)
abs_res(x,y)

## End(Not run)

generalCorr documentation built on Jan. 4, 2022, 1:08 a.m.