calculateCurveFit function

Calculate the fit for a dose-response curve