Introduction

Note

This package is in beta. In future versions, the API may change substantially. Please use the GitHub issue tracker to report bugs or to request features.

This code was written to perform the procedure for testing firm conduct developed in “Testing Firm Conduct” by Marco Duarte, Lorenzo Magnolfi, Mikkel Sølvsten, and Christopher Sullivan. It builds on the PyBLP source code (see Conlon and Gortmaker (2020)) - to do so.

The code implements the following features:

For a full list of references, see the references in Duarte, Magnolfi, Sølvsten, and Sullivan (2023).

Install

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

You will also need to make sure that you have all package dependencies installed.

To install the pyRVtest package, use pip:

pip install pyRVtest

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

To update to a newer version of the package use:

pip install --upgrade pyRVtest

Using the package

For a detailed tutorial about how to set up and run the testing procedure, see Tutorial.

Citing the package

When using the package, please include the following citation:

Duarte, M., L. Magnolfi, M. Sølvsten, C. Sullivan, and A. Tarascina (2023): “pyRVtest: A Python package for testing firm conduct,” https://github.com/anyatarascina/pyRVtest.

@misc{ pyrvtest, author={Marco Duarte and Lorenzo Magnolfi and Mikkel S{o}lvsten and Christopher Sullivan and Anya Tarascina}, title={texttt{pyRVtest}: A Python package for testing firm conduct}, howpublished={url{https://github.com/anyatarascina/pyRVtest}}, year={2023}

Bugs and Requests

Please use the GitHub issue tracker to submit bugs or to request features.