***--------------------------------------------------------------------***; ** Robustify data and Mardia's Skewness and Kurtosis; **Technical details are provided in Yuan, Chan & Bentler (BJMSP 2000, 53, 31–50), and also in Yuan & Gomer (BJMSP 2020); ***--------------------------------------------------------------------***; data Mardia; *n=88; infile 'd:\papers\2020\robustMethod\Mardia.dat'; input v1-v5; *5 variables for Mardia's data; run; options ls=80 nodate nonumber; title; proc iml; reset noname; *-----------------------------; start order(n, m, t_stat); *the order is from large to small according to the elements of the m column; do i=1 to n-1; do j=i+1 to n; if t_stat[i,m]