Learn R Programming

LadR (version 1.0.6)

ladreg: Fitting LAD Models

Description

Fitting LAD Models

Usage

ladreg(y, X, intercept = 1, alpha = 0.05, print = 1)

Arguments

y

A vector with response variables.

X

A matrix or vector with explanatory variables.

intercept

1 for a model with intercept and 0 for a model without intercept.

alpha

significance level to hypotheses tests.

print

1 to print response variables, fitted values and residuals, 0 to don't print.

Value

outliers

A vector with outliers indices.

.

References

Dielman, T. E. (2005) Least absolute value regression: recent contributions. Journal of Statistical Computational and Simulation, 75(4), 263<U+2013>286. 10.1080/0094965042000223680

Examples

Run this code
# NOT RUN {
### Using stackloss data

ladreg(stack.loss, stack.x, intercept =1, alpha=0.05, print=1)
# }

Run the code above in your browser using DataLab