Generating linear regression models