Dear All,
A -correlate- command in my do file gives slightly different results each
time the file is executed. I'm baffled by this, and I don't find any
explanation from the -help- for -correlate-. I've provided below, three of
such different results, as well as, excerpts of the do file. Any help will
be appreciated. Thank you.
use isocomb_indices, clear;
sort f1;
list region district dmrd dmkt dpt djss dchp f1, clean header(50);
gen rankf1=_n;
sort f2;
list region district pwrd pwmkt1 pwmkt2 pwjss pwchp f2, clean header(50);
gen rankf2=_n;
bysort region: list region district nc f1 rankf1 f2 rankf2, clean mean(f1
rankf1 f2 rankf2);
correlate rankf1 rankf2;
drop rankf1 rankf2;
sort region district;
save isocomb_indices, replace;
clear;
log close;
exit;