Code for estimating equation for different values of a certain variable and storing residuals
Posted: Mon Mar 19, 2018 12:41 am
Hello!
I am estimating a threshold model of the form: y = c + a*x(z<theta) + b*x(z>=theta)
where z lowest value< theta <z highest value
what I want to do is to estimate this model for all values of "z" variable starting from the lowest value to the highest value, and storing the SSR of each regression along with the value of "z" variable used in the regression.
so lets suppose the lowest value of z is 0.5 and 2nd lowest is 0.6 I want to estimate y = c + a*x(z<0.5) + b*x(z>=0.5) and y = c + a*x(z<0.6) + b*x(z>=0.6) respectively, upto the highest value of z.
I am new to eviews programming so any suggestions would really help me learn the programming syntax.
I am estimating a threshold model of the form: y = c + a*x(z<theta) + b*x(z>=theta)
where z lowest value< theta <z highest value
what I want to do is to estimate this model for all values of "z" variable starting from the lowest value to the highest value, and storing the SSR of each regression along with the value of "z" variable used in the regression.
so lets suppose the lowest value of z is 0.5 and 2nd lowest is 0.6 I want to estimate y = c + a*x(z<0.5) + b*x(z>=0.5) and y = c + a*x(z<0.6) + b*x(z>=0.6) respectively, upto the highest value of z.
I am new to eviews programming so any suggestions would really help me learn the programming syntax.