hello there, can anyone tell me how to correct this error, "Error in nlm(if(analytic.gradient) objective.2 else objective.1, start,: probable coding error in analytic gradient)" thanks in advance. sonam