Get rotated residuals from a fitted linear model
Source:R/zzz_auto_visual_inference.R
AUTO_VI-cash-rotate_resid.Rd
This function gets rotated residuals from a fitted linear model. The rotated residuals are generated by first regressing random noises on the original regressors, then multiply the obtained residuals by original RSS divided by the current RSS. The results are the rotated residuals.