Skip to main content

Code to perform econometric test of firm conduct

Project description

pyRVtest

This code was written to perform the procedure for testing firm conduct developed in "Testing Firm Conduct" by Marco Duarte, Lorenzo Magnolfi, Mikkel Solvsten, and Christopher Sullivan. It largely adapts the PyBLP source code (copyright Jeff Gortmaker and Christopher Conlon) to do so.

The code implements the following features:

For a full list of references, see the references in Duarte, Magnolfi, Solvsten, and Sullivan (2021).

Install

First, you will need to download and install python, which you can do from this link.

Then you will need to install the pyRVtest python package:

pip install pyRVtest

This should automatically install the python packages on which pyRVtest depends: numpy, pandas, statsmodels, pyblp

These can also be installed by running the pip install command in either terminal (Mac) or Command Prompt (Windows).

Import python packages

First open python3 (pyRVtest has been developed for releases of python 3.6 and later) in either terminal or command prompt. Then you import the necessary packages:

import numpy as np
import pandas as pd
import pyblp
import pyRVtest

Running the code

For a detailed tutorial about how to set up and run the code, see tutorial.md

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

pyRVtest-0.1.2.tar.gz (700.0 kB view hashes)

Uploaded Source

Built Distribution

pyRVtest-0.1.2-py3-none-any.whl (709.6 kB view hashes)

Uploaded Python 3

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