Codes for the analysis