Compare what exactly? Record by record matching on some value(s) and report what?
Mean/count/rate or some other statistic of some variable? Which ones?
Compare can mean many different things and we need to have some idea what sort of comparison is involved and what the output should look like.
... View more