purpose

This macro computes corrected Pearson correlation estimates between a surrogate variable measured once (eg. xi=ffq) and

a gold standard variable measured a variable number of times for each subject (eg, yi1...yini, DR). The goal is to estimate:

(a) The observed correlation between xi and the average yi.

(b) The corrected correlation between xi and the average of a infinite number of replicates