
* General Notes 

1. The files in the folder Matlab_Replication/  replicate Tables 3,4 and 5 from the paper.

2. The file master.m runs the code for producing Tables 3-5 in the
   paper. Tables 1-2 are done in Stata

3. Read master.m for files, setting directories and dependencies in Matlab.

4. Run master.m and it will generate Tables 3-5 (the code takes approximately 40 minutes to rurn on a X86 linux with 64GB RAM)

5. Output is 3 .tex files (table3_complete.tex, table4.tex and
table5.tex) in the latex/ folder 


* Files Order (for reference  by first call):
** table3.m  	 
  1. setdirectories.m
  2. dataprep.m
  3. assignoptions.m
  4. qn_cmle.m
      a. getpmat.m
	  a. vf.m
	      a. Evstar.m
		  a. util.m
		  b. tr_prob.m
		  c. vf_vector.m
		      a. util_vector.m
		      b. Evstar_vector.m
			  a. tr_prob_vector.m
  5. get_derivatives.m
      a. NumHessian_qn.m
      b. getscoremat.m 
** table4.m
   1. setdirectories.m
   2. retreatmentpricechanges.m
       1. matching_probs.m
	   a. getpmat_matching_probs.m
	       a) vf.m
       2. delta_method_4.m
	   a) matching_probs.m
   3. latexTable.m 
** Table5.m
   1. setdirectories.m
   2. counterfactual_expenditures.m
       1. getpmat_matching_probs.m
   3. delta_method_table5.m
   4. latexTable.m
