The optimal linear regression olr(), runs all the possible combinations of linear regression equations. The olr() returns the equation which has the greatest adjusted Rsquared term or the greatest Rsquared term based on the user's discretion. Essentially, the olr() returns the best fit equation out of all the possible equations. Rsquared increases with the addition of an explanatory variable whether it is 'significant' or not, thus this was developed to eliminate that conundrum. Adjusted Rsquared is preferred to overcome this phenomenon, but each combination will still produce different results and this will return the best one. Complimentary functions are included which list all of the equations, all of the equations in ascending order, a function to give the user a specific model's summary, and the list of adjusted Rsquared terms & Rsquared terms. A 'Python' version is available at: <https://pypi.org/project/olr/>.
Package details 


Author  Mathew Fok 
Maintainer  Mathew Fok <mfok@stevens.edu> 
License  GPL3 
Version  1.1 
URL  https://github.com/MatHatter https://pypi.org/project/olr/ 
Package repository  View on CRAN 
Installation 
Install the latest version of this package by entering the following in R:

Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.