This package contains a code for a paper "Mobile Money in Tanzania" by

Nicholas Economides
Stern School of Business, NYU; NET Institute; economides@stern.nyu.edu

and

Przemyslaw Jeziorski
Haas School of Business, UC Berkeley; przemekj@haas.berkeley.edu

Copyright by Przemyslaw Jeziorski, 2016

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

List of data files:
Real data:
  amounts.mat
    List of matrices:
    amounts (1x33) - contains transfer amounts
                   - columns are discretized transfer (transportation
                     storage amounts)
  ext.mat   
    List of matrices:
    ext_before (1001x33) - contains estimated extra cash-out fees imposed 
                           on the receiver, prices before fee increase
                         - columns are received transfer amounts
                         - rows are discretized balances of the receiver
                           before transfer
    ext_after (1001x33)  - contains estimated extra cash-out fees imposed
                           on the receiver, prices after fee increase
                         - columns are received transfer amounts
                         - rows are discretized balances of the receiver
                           before transfer
  parametersFinal.mat
    List of matrices:
    parameters (1x66)    - estimated parameters of the transfer model

  parametersFinal_cashout.mat
    List of matrices:
    parameters (1x66)    - estimated parameters of the transportation-storage model
   

Synthetic data:
  dataTran.mat
    List of matrices:
    transfers (42x100000) - contains executed transfer amounts (33 is no transfer)
                          - columns are individuals
                          - rows are transfer need/days,
                            ex. row 1 is first need on day 1
                                row 2 is second need on day 1
                                row 10 is first need on day 3

    distance (42x100000)  - distance in kilometers for corresponding transfers
                            0 if transfer was not executed

    balance (42x100000)   - balance of the receiver for corresponding transfers
                            0 if transfer was not executed

  data_cashout.mat
    List of matrices:
    transfers (42x100000) - contains executed transportation-storage amounts (33 is no transfer)
                          - columns are individuals
                          - rows are transportation-storage need/days,
                            ex. row 1 is first need on day 1
                                row 2 is second need on day 1
                                row 10 is first need on day 3

    distance (42x100000)  - distance in kilometers for corresponding transportation-storage
                            0 if transfer was not executed

    span (42x100000)      - span in days for corresponding transportation-storage
                            0 if transfer was not executed
   
  Omega.mat
    List of matrices:
    Omega (101x101)       - Example of weighting matrix for the transfer model

  Omega_cashout.mat
    List of matrices:
    Omega (101x101)       - Example of weighting matrix for the transportation-storage model
                   

List of estimation files:

Main estimation files:
  estimate_cashout.m
  estimate.m

Compute GMM objective function:
  probit_c_cashout.m
  probit_c.m


Main C wrapper loading the data and calling moment functions:
  cashout_probit.c
  cashout_probit.h
  probit.c
  probit.h

Functions computing moments (demand for storage-transportation):
  cashout_moments.c
  probit.c

Compute standard errors:
  compute_stderr_cashout.m
  compute_stderr.m

Produce customer heterogeneity graphs:
  postprocess_heterogeneity.m
  probit_heterogenity.m

Compute WTP for storage and transportation:
  wtp_cashout.m
  wtp_evaluate.m

Random number generator by
Mutsuo Saito (Hiroshima University)
Makoto Matsumoto (Hiroshima University):
  dSFMT.c
  dSFMT-common.h
  dSFMT.h
  dSFMT-params19937.h
  dSFMT-params.h

GPL Lic.
  gpl-3.0.txt

Makefile
  Makefile
