Confusing dimension mismatch error

Thanks have resolved the issue, 2 was because of quadgk. But I think LsqFit.jl is not a good package for this kind of curve fit and parameter extraction exercise, could you suggest any other julia package for the same