R data analyses for REDC paper