Prime Minister Abdullah Ahmad Badawi vowed to remain in power despite ex-premier Dr Mahathir Mohamad's criticism that he is endangering the economy.