Estimating functional forms in cost-prices