proc_reg function

Calculates a Regression