This is an extremely important question to ask and to research, not to speak of answering it properly. It complements the EA community very nicely and can then help to answer questions like "Should I donate to GiveWell or MIRI?" I am very interested in your results.
This is interesting, especially the conclusion from the "How valuable is medical research?" post that the cost/benefit of medical research is, to "a rough 90% confidence interval, of between $2,000 and $36,000 per (Quality-Adjusted Life Year)". It would be interesting to look at medical research's effect on maximum life span -- how long the most long-lived person has lived -- because medical advances tend to reduce mortality, not increase the life span record (see this Stanford Center of Longevity talk).
A simple model of economic growth (see Mankiw, "Macroeconomics") is that growth in Output (e.g GDP) is the sum of growth in Capital, Labor, and Total Factor Productivity. A case study in this text argues that South Korea's boom from the 1950s to the 1990s was due to investment in capital (rebuilding after the Korean War) and in labor (large increases in education), and technology improvement did not significantly affect economic growth.
My naive reading is that Capital (e.g. factory equipment) and Labor (e.g. workers) are both limited by resource availability on Earth but offer relatively large returns when resources are available, while Total Factor Productivity (e.g. technology) can improve without limit but is relatively expensive. Thus, someone wanting to min/max the global economy would go for a lot of population growth and infrastructure projects until the carrying capacity of the Earth was reached, then would invest the remaining capacity in R&D. Unfortunately, this becomes a political and coordination problem: how do get people to agree with your definition of "effectiveness", and how do you motivate millions of people to tackle a shared goal while avoiding corruption, oppression, etc.?
At a societal level, how much money should we put into medical research, or into fusion research? For individual donors seeking out the best opportunities, how can we compare the expected cost-effectiveness of research projects with more direct interventions?
Over the past few months I've been researching this area for the Global Priorities Project. We've written a variety of articles which focus on different parts of the question. Estimating the cost-effectiveness of research is the central example here, but a lot of the methodology is also applicable to other one-off projects with unknown difficulty (perhaps including political lobbying). I don't think it's all solved, but I do think we've made substantial progress.
I think people here might be interested, so I wanted to share our work. To help you navigate and find the most appropriate pieces, here I collect them, summarise what's contained in each, and explain how they fit together.