Estimating Investment Functions Based on Cointegration