Mahal | R Documentation |
Compute Mahalanobis Distance for Multiple Regression
Mahal(model = NULL, pred = NULL, values = 5)
model |
name of model |
pred |
number of predictors |
values |
number of Mahal values to print (highest values). Default is 10 |
Mahalanobis Distance to detect MV outliers
mymodel<-lm(y~x1+x2+x3+x4, testreg) Mahal(model=mymodel, pred=5, values = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.