Skip to contents

Calculate the median of absolute residuals (MAR).

Usage

mar(x)

Arguments

x

Numeric vector of residuals.

Value

A numeric scalar containing the median absolute residual. Missing values propagate because na.rm = FALSE is used.