
%MDLrq2.Residuals (col:1 Raw, 2 Pearson, 3 Studentized, 4 Standardized
%MDLrq2.Diagnostics (col:1 Leverage, 2 CooksDistance, 3 Diffits, 4 S2_i, 5 CovRatio, 6 DfBetas)

res_CAL = mdlcal.Residuals;
R_CAL = table2array(res_CAL);
res_PRD = mdlprd.Residuals;
R_PRD = table2array(res_PRD);

diag_CAL = mdlcal.Diagnostics;
D_CAL = table2array(diag_CAL);
diag_PRD = mdlprd.Diagnostics;
D_PRD = table2array(diag_PRD);

lev_CAL = D_CAL(:,1);
lev_PRD = D_PRD(:,1);



