I'm trying to move a script from Matlab to SAS IML. I did it and it works apparently, but I am getting different results with the functions:
x = lsqcurvefit(f, p, GC, DD');
/* fun=f-dd and GC already set as parameter in fun.*/ CALL NLPLM (rc, xr, "fun", p, opt);
Are they equivalent? According to the documentation it seems so.
Thanks a lot.