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.0.8.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

olr-1.0.8-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: olr-1.0.8.tar.gz
  • Upload date:
  • Size: 1.7 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.0.8.tar.gz
Algorithm Hash digest
SHA256 8b7ba5aed6a8de37bc24abbdd542885c0bff6e2115d070e3612f7b745d1e386d
MD5 b862f900d3d47c247519e798d3be4a50
BLAKE2b-256 6bd5b81e420c898908528a9c00316dcbd03550bf03b98234ad157d0fe12983bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: olr-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 17.1 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.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 dd967ef26c344e8203ad2ffe781d041ea4fca27b0e8663dfa407dbc5d1e0e454
MD5 31ae4c2d447d58a303c6e96ea4e7b295
BLAKE2b-256 6d0316b7ce01350714f9693307c2ab262280c31102e9876e8f95e067f625a9fe

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