Regression aspects of canonical correlation