Hello, I'm trying to do rolling regression for the nonlinear equation (exponential). My functional form (stata form) for nonlinear equation is:
nl(weeklygrowth=({alpha1}+{alpha2}*day+{alpha3}*day2+{alpha4}*day3+{alpha5}*day4{a1}*m1+ {a2}*m2+ {a3}*m3+{a4}*m4+{a5}*m5+{a6}*m6+{a7}*m7+{a8}*m8+{a9}*m9+{a10}*m10+{a11}*m11)exp(-1{beta1=0.0005}*t))
Please tell me how to do rolling regression for this equation (window=522).
Best Regards, Sunny