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. Adding an additional explanatory variable to the regression equation increases the R-squared or adjusted R-squared terms even if the variable is not 'significant'. Thus, adjusted R-squared was preferred, but this was developed to eliminate that conundrum.
dataset = pd.read_csv('C:\Rstuff\olr\inst\extdata\oildata.csv') responseName = dataset[['OilPrices']] predictorNames = dataset[['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.
When responseName and predictorNames are None (NULL), then the first column in the dataset is set as the responseName and the remaining columns are the predictorNames.
Adjusted R-squared
olr(datasetname, resvarname = None, expvarnames = None, adjr2 = "True")
R-squared
olr(datasetname, resvarname = None, expvarnames = None, adjr2 = "False")
list of summaries
olrmodels(datasetname, resvarname = None, expvarnames = None)
list of formulas
olrformulas(datasetname, resvarname = None, expvarnames = None)
list of forumlas with the dependant variables in ascending order
olrformulasorder(datasetname, resvarname = None, expvarnames = None)
the list of adjusted R-squared terms
adjr2list(datasetname, resvarname = None, expvarnames = None)
the list of R-squared terms
r2list(datasetname, resvarname = None, expvarnames = None)
An R version of this package olr is available on CRAN.
Metadata
Release files for olr 1.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| olr-1.3.3.tar.gz | 5.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| olr-1.3.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.6 kB
Release files / olr-1.3.3.tar.gz
| Download URL | olr-1.3.3.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5817f9dda548209a7610c7ef265faced948a9be475f177555b8da4d5d1d2ed72
|
|
BLAKE2b-256 checksum How to use checksums |
60ace53c8412d3f857ddd619a371c0e562525c96052256c048d0104008868771
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / olr-1.3.3-py3-none-any.whl
| Download URL | olr-1.3.3-py3-none-any.whl |
|---|---|
| Size | 18.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ca094445c6d6348ab3b147fe9b7308177fbbfbcf9eda96c2360833037ac941ae
|
|
BLAKE2b-256 checksum How to use checksums |
7082fe4c8e20d84d9dda3cd1a6c3ee3e556e786b5beed1deeff169be91077563
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|