Design and analysis of a clinical trial using previous trials as historical control