FD {diagL1} | R Documentation |
F Distance
Description
F Distance
Usage
FD(model, norm = 2)
Arguments
model |
Object returned from regL1 representing the fit of the L1 model. |
norm |
Type of norm, there are two types, 1 (norm L1) and 2 (norm L2). The default is norm L2. |
Value
F Distance |
A vector with F Distance for each observation. |
.
References
Sun, R.-B. and Wei, B.-C. (2004). On influence assessment for lad regression. Statistics & Probability Letters, 67, 97-110. doi:10.1016/j.spl.2003.08.018.
Examples
set.seed(123)
x = matrix(rnorm(100), ncol = 2)
y = x[, 1] + x[, 2] + rlaplace(50, 0, 5)
# Fits a linear regression L1 model
mod1 = regL1(y ~ x)
FD(mod1)
[Package diagL1 version 1.0.0 Index]