Malaysia , a middle-income country , has transformed itself since the 1970s from a producer of raw materials into an emerging multi-sector economy .