Analysis of foreign direct investment