Proportional randomization method to identify index line of therapy in externally controlled trials