tv-slr
Implementation of time-varying SLR using OLS estimates
Idea
One of the basic assumptions of the general linear model is that the parameters are constant over time. It has been often suggested that this may not be the valid assumption to make. In cross section studies there can be heterogeneity in the parameters across different units, where as in time series studies there can be variation over time in the parameters... paper link
Installation
pip install tvslr
Usage
In python
from tvslr.tvslr import TVSLR
"""
X:= numpy array containing the independent feature vectors
y:= numpy array containing dependent variable
n:= subset size (must be greater than number of independent features including intercept variable)
"""
reg = TVSLR(X, y, n)
betas = reg.run()
print(betas)
print("R-squared:", reg.cod)
print("Adj. R-squared:", reg.adj_cod)
In command prompt
python -m tvslr <excel filename> <sheetname> <subset size>
Metadata
Release files for tvslr 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tvslr-2.0.0.tar.gz | 4.3 kB | Without provenance | Details for tvslr-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tvslr-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for tvslr-2.0.0-py3-none-any.whl |
Total release size: 9.9 kB
Release files / tvslr-2.0.0.tar.gz
| Download URL | tvslr-2.0.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b20fc1d27416eb4839461b61177350b4ca6d5ca43b777c484e36318513bb96aa
|
|
BLAKE2b-256 checksum How to use checksums |
49b0feffae404b58841b3aaa921baedb5e97fcc0e75f1f0630494d2a39bab7d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.7
|
Release files / tvslr-2.0.0-py3-none-any.whl
| Download URL | tvslr-2.0.0-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cbdb5d172b42f23e80da23043dfc57893bf11859d708d09f0ffcc7914ecb836d
|
|
BLAKE2b-256 checksum How to use checksums |
f05d9798fbc94834e28489ff404a3b342e74c6ccd2a5b1400cc4694aa24a97eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.7
|
Security for tvslr 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.