Sample R scripts for CS-3654 (CMDA)