50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

BetterReg (version 0.2.0)

Mahal: Compute Mahalanobis Distance for Multiple Regression

Description

Compute Mahalanobis Distance for Multiple Regression

Usage

Mahal(model = NULL, pred = NULL, values = 5)

Arguments

model

name of model

pred

number of predictors

values

number of Mahal values to print (highest values). Default is 10

Value

Mahalanobis Distance to detect MV outliers

Examples

Run this code
# NOT RUN {
mymodel<-lm(y~x1+x2+x3+x4, testreg)
Mahal(model=mymodel, pred=5, values = 10)

# }

Run the code above in your browser using DataLab