Methods for planning and analyzing clinical trials with composite endpoints