Nonlinear least squares estimate

Yes. And just throw a function over it so that you send f(p) to send it to the package.