If by efficiency of capital markets you mean the costs of trading or transactions, access to capital as measured by market liquidity (i.e. traded volumes as proxy), and integrity of the market (i.e. legal framework and protection of property rights), you can do a number of cross section regressions of these variables against some of the measures under ease of doing business that are published by Transparency International, or Heritage Foundation's economic freedom indicators.
The correlations tend to be positive for the following:
1. Higher transparency scores tend to lead to lower costs of transactions, access to capital or market liquidity.
2. Higher scores in "ease of doing business" tend to lead to higher scores in transparency measures.
By doing a two stage regression analysis, you could formulate a framework that could analyse
Have you ever read Daron Acemoglu? He has also written a book on why nations fail. Well in short a good capital market is the one with the institutions. Let's say the one with the central bank etc. The macro economic variables are the ones affected I believe. The influence comes from within , a bit of a keynesian approach
If by efficiency you mean prices reflecting all the information available publicly or privately, then information asymmetry & disclosure are the most important variables. Liquidity prevailing in the markets, and low transaction costs are other important variables.
A good place to start is the Journal of Economic History, Volume 49, Issue 4, December 1989, pp. 803-832. "Constitutions and Commitment: The Evolution of Institutions Governing Public Choice in Seventeenth-Century England," by Douglass C. North and Barry R. Weingast.