Dear all:
I have the next issue, I want to estimate a non lineal least square, for that use the next "program"
but now i would like to do the same but with Mata, using Gauss Newton Method. i don“t know how to start programming.
Kind regards
I have the next issue, I want to estimate a non lineal least square, for that use the next "program"
Code:
program nlequation1, rclass
version 13
syntax varlist(min=2 max=2) if
local y : word 1 of `varlist'
local x : word 2 of `varlist'
return local eq "`y' = {b0} + (`x')^{b1}"
return local title "Non Linear Least Square Equation"
end
nl equation1: clarity quality
nl equation1: clarity quality , initial(b0 b1 )
Kind regards

, I read the post and I have some question. First how can write "`y' = {b0} + (`x')^{b1}" , because the example of the post uses exp(Xb) who is linear in Xb, but in my case bo is linear and b1 is non linear. Second, what is todo in the code.
Comment