ECONOMETRICS OF COMPETITIVE AND REGULATED MARKETS