Editing CDA.R so that it computes the statistics