Replication files of: 

       Compiani G. (2021). 
          Market Counterfactuals and the Specification of Multi-Product Demand: A Nonparametric Approach, 
          Quantitative Economics, forthcoming. 

Last updated: 

       October , 2021.

(1) Main Matlab codes for the Monte Carlo simulations:

 	script_figure2.m
	script_figure3.m


(2) Main Matlab codes for the empirical application:


(3) Scripts used in the main Matlab codes above:



(4) Data for the empirical application:



The original dataset associated with Urban and Niebler (2014, AJPS) can be found at the American Journal of Political Science (AJPS) DataVerse archive:
https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/FHOJ3L

The text file above (zip_ads_v4.txt) contains a part of the original dataset.
Our empirical results in Section 10 can be replicated by running the Matlab codes in (2) and zip_ads_v4.txt.
