First draft of the function returning the variables to compute the regression