Page 1 of 1

Mahalanobis distance in SPSS vs. R

Posted: Sun May 03, 2020 5:33 pm
by sjentsch
Hei,

one can use the Mahalanobis-distance in order to check for multivariate outliers. The data set I am using is Album Sales.sav from Field (2018). http://study.sagepub.com/sites/default/ ... _files.zip
When calculating it using SPSS: Analyze → Regression (DV: Sales; IV: Adverts, Airplay, Image) → Save → Mahalanobis I get Mahalanobis distances that are different but still relatively highly correlated (0.873) to those I get from R using mahalanobis(data[, 2:4], colMeans(data[, 2:4]), cov(data[, 2:4]))

I wanted to add that I get the identical results from mahalanobis in vanilla R and the one implemented in the psych-package.

Any thoughts?

Thanks a lot,

Sebastian

Re: Mahalanobis distance in SPSS vs. R

Posted: Mon May 04, 2020 1:09 am
by jonathon
hey wait ... this is about spss and R ... is there anything jamovi related here? do you need to be posting in the off-topic forum :P

jonathon

Re: Mahalanobis distance in SPSS vs. R

Posted: Mon May 04, 2020 10:31 am
by sjentsch
I intend to get Mahalanobis into jamovi. Is this sufficient? ;-)

S

Re: Mahalanobis distance in SPSS vs. R

Posted: Mon May 04, 2020 10:51 am
by jonathon
oh yup :)

Re: Mahalanobis distance in SPSS vs. R

Posted: Fri Jul 09, 2021 12:57 am
by DeborahA
Hi there,

Did you make any progress on this feature? I have a student asking about it.

Best

Deborah.