Learn R Programming

diagL1 (version 1.0.0)

SAE: Function to calculate SAE

Description

Function to calculate SAE (Sum of Absolute Errors) of the adjusted model.

Usage

SAE(model)

Value

SAE (Sum of Absolute Errors).

Arguments

model

A linear model L1 fitted with the rq function from the quantreg package.

Examples

Run this code
data(stackloss)
model_L1 = regL1(stack.loss ~ stack.x)
SAE(model_L1)

Run the code above in your browser using DataLab