R&D investment, Credit Rationing and Sample Selection