CASTLE_analysis.do