Inferring Agent Behavior and Economic Information, with Free Entry and Exit of Firms