Linear regression function
Weighted linear regression function
Master call function WPS4R
function to be replaced