This zip file contains the Matlab code related to the paper
"The Exact Distribution of the White t-Ratio" 
by Bruce E. Hansen

The following files are Matlab functions

Tcdf.m		General function which calculates distribution function using G3/G4 method
T3cdf.m		Calculates distribution function using G3 method
T4cdf.m		Calculates distribution function using G4 method
T4cdfM.m	Calculates distribution function using G4 method, returns M additionally
		(used for Table 5 only)

The remaining files are Matlab script files. 
They generate the results for the tables and figures in the main paper and Suppletary Appendix.

The following files generate Tables 1-3

Table1Homo1.m
Table1Homo2.m
Table1Homo3.m
Table1Hetero1.m
Table1Hetero2.m
Table1Herero3.m

The following files generate Table 4

Table4Homo1.m
Table4Homo2.m
Table4Homo3.m
Table4Hetero1.m
Table4Hetero2.m
Table4Herero3.m

The following file generates Table 5

Table5.m

The following files generate Table 6

Table6Homo1.m
Table6Homo2.m
Table6Homo3.m
Table6Hetero1.m
Table6Hetero2.m
Table6Herero3.m 

The following files generate Figure 1

Figure1Homo.m
Figure1Hetero.m

The following files generate Figure 2

Figure2Homo.m
Figure2Hetero.m