A Rank-Invariant Method of Linear and Polynomial Regression Analysis