Now using the lapply function to "loop" over various statistical analyses. I have implemented lapply for CD and CDq at this point. I still need to do CDx.