/* Pearson Correlation of Age and BMI*/

filename t01 url 'http://hedwig.mgh.harvard.edu/biostatistics/sites/default/files/public/education/tmp_sample_data.csv';

proc import file=t01 out=t01 dbms=csv replace;

proc corr data=t01 nosimple;
var age;
with bmi;

/********************************** ANNOTATED RESULTS **********************************/

                             The CORR Procedure

                          1 With Variables:    bmi
                          1      Variables:    age

                   Pearson Correlation Coefficients, N = 60
                          Prob > |r| under H0: Rho=0


                               bmi       0.59565a
a Pearson correlation
b P-value indicating correlation is significantly different than zero