Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

olr-1.1.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

olr-1.1.0-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file olr-1.1.0.tar.gz.

File metadata

  • Download URL: olr-1.1.0.tar.gz
  • Upload date:
  • Size: 2.4 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

Hashes for olr-1.1.0.tar.gz
Algorithm Hash digest
SHA256 f2c34a5c2261687a5431eaaf39faa0675067e844f7d92a9bb74c6904f2862dcb
MD5 43fd6dcf69f1c97dce4d2c69b1b32e9e
BLAKE2b-256 666ef3133850bc00a67c41bb5c9118aafef32fd068ee38e86be2049e99cc64f2

See more details on using hashes here.

File details

Details for the file olr-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: olr-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.2 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

Hashes for olr-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 68b0f02ebe22e5a78a7e74204fee603664f634952a2849841efd26d7ac360025
MD5 9283a625b519fc7366a227cbeaaa891c
BLAKE2b-256 e34f9ceefdadbf0d7072d9d5ca4ea42c8a40dba9ef6d4c04cb7bf383cc79330d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page