Statistics for A Statistical investigation of pulsating stars: Twelfth paper: The variables in the Magellanic Clouds