ijmatrix.crosstab(mcidataset, submarkets, suppliers, shares)data.frame containing $i$ rows and $j+1$ columns (suppliers/locations and one column containing the submarkets/origins).
Huff, D. L./McCallum, D. (2008): Calibrating the Huff Model Using ArcGIS Business Analyst. ESRI White Paper, September 2008. https://www.esri.com/library/whitepapers/pdfs/calibrating-huff-model.pdf
Wieland, T. (2015): Raeumliches Einkaufsverhalten und Standortpolitik im Einzelhandel unter Beruecksichtigung von Agglomerationseffekten. Theoretische Erklaerungsansaetze, modellanalytische Zugaenge und eine empirisch-oekonometrische Marktgebietsanalyse anhand eines Fallbeispiels aus dem laendlichen Raum Ostwestfalens/Suedniedersachsens. Geographische Handelsforschung, 23. 289 pages. Mannheim : MetaGIS.
ijmatrix.create, ijmatrix.shares
data(ce)
# Loads the data
ce_cross <- ijmatrix.crosstab(ce, "origin_code", "store_code", "ms_obs")
# Converts the market shares in the ce dataset to a crosstable
Run the code above in your browser using DataLab