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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

olr-0.0.2-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: olr-0.0.2-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

Hashes for olr-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8ed37fa98fcba0cf89d61d57b92f10fc97b86ca4484c67db84c80847bbd99bb6
MD5 98ffc18ddf4c96c89148ce4fc231c5d7
BLAKE2b-256 f73d959fa874cd7f41d7430dec4fd0aad3f692b7c1c23dd4960c53fa3c376ac5

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