data and analysis script