Skip to main content

OLS_pipeline

A Python package to preprocess data, fit models, and calculate VIF.

Installation

You can install the package using pip:

Usage

import OLS_pipeline.pipeline as OLS_pipe

data_path = "path/to/your/data.csv"

dependent_var = 'Target'
independent_vars = ['Feature1','Feature2']
normalize_cols = ['Feature3', 'Feature4', 'Feature5']
weight_dict = {'Normalized_F3': 0.4, 'Normalized_F4': 0.2, 'Normalized_F5': 0.4}
#Note Normalized_F3=Feature 3 which you input in normalized_cols and weights should be summed up to 1
interaction_pairs = [('Feature_x', 'Feature_y')]#Dot product of both the features

results = OLS_pipe.pipeline(data_path, dependent_var, independent_vars, normalize_cols, weight_dict, interaction_pairs)
fixed_effects_results, random_effects_model, vif_data = results 

Download files

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

Source Distribution

panelolspipeline-0.1.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PanelOLSPipeline-0.1.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file panelolspipeline-0.1.1.tar.gz.

File metadata

  • Download URL: panelolspipeline-0.1.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for panelolspipeline-0.1.1.tar.gz
Algorithm Hash digest
SHA256 94b4bc5d468247e5ce1bdc049e59629640e9052e322a5091858e4cab7423778b
MD5 20172e342b39bef062f22b442bc44503
BLAKE2b-256 fc2ce5ffd7813f20efd747925b0346d2670737cef33d8a9c6cfa74d5febaf183

See more details on using hashes here.

File details

Details for the file PanelOLSPipeline-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for PanelOLSPipeline-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 254d87c86987d219e3e6d67bb203df60e0fc1ff3fdb804b886f2db8a5c96f2bb
MD5 8395c783f4c8714e5eafd36a48237a8e
BLAKE2b-256 155f4b35084fdfd29c36234518c7469d7688e8fc95acbd24cccb8b62336cc1e2

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page