olr: Optimal Linear Regression
Project description
The olr function runs all the possible combinations of linear regressions with all of the dependent variables against the independent variable and returns the statistical summary of either the greatest adjusted R-squared or R-squared term.
datasetname = pd.read_csv('C:\Rstuff\olr\inst\extdata\oildata.csv') resvarname = datasetname[['OilPrices']] expvarnames = datasetname[['SP500', 'RigCount', 'API', 'Field_Production', 'RefinerNetInput', 'OperableCapacity', 'Imports', 'StocksExcludingSPR']]
The TRUE or FALSE in the olr function, specifies either the adjusted R-squared or the R-squared regression summary, respectfully.
Adjusted R-squared olr(datasetname, resvarname, expvarnames, adjr2 = "True")
R-squared olr(datasetname, resvarname, expvarnames, adjr2 = "False")
list of summaries olrmodels(datasetname, resvarname, expvarnames)
list of formulas olrformulas(datasetname, resvarname, expvarnames)
list of forumlas with the dependant variables in ascending order olrformulasorder(datasetname, resvarname, expvarnames)
the list of adjusted R-squared terms adjr2list(datasetname, resvarname, expvarnames)
the list of R-squared terms r2list(datasetname, resvarname, expvarnames)
There is an R version of this package.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file olr-0.0.3.tar.gz
.
File metadata
- Download URL: olr-0.0.3.tar.gz
- Upload date:
- Size: 1.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e27937021e6860c89aa12b829bb5f3cffa4b2f3eae6dd792cab2e00d9aba6797 |
|
MD5 | 1865cec2f79307d5a161d1fff7d21c5a |
|
BLAKE2b-256 | f739b1417c6593373efd79c02b1d09bfb8d0ee090a307c5198ce05f3443dec64 |
File details
Details for the file olr-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: olr-0.0.3-py3-none-any.whl
- Upload date:
- Size: 14.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d5d7d1b861b0e84caf90c0ebeed8e1fe4ec8687530b225a94023fcb4ae50910 |
|
MD5 | 2e8a653c557e807f0a0cc22654ae8fbd |
|
BLAKE2b-256 | 03a2c13ea0dc61fa6e2df6cda9fc0c69bd7cf89381a57715ef246fc7ab2fa330 |