Hi,
I wish to calculate information criteria value of Modified AIC (MAIC) of an ARDL equation. In calculating the MAIC, it involves the calculation of modification factor and this modification factor involves the sumofsquare of lagged level of y.
My question is, if I want to call out the value of this sumofsquare of y(1) in EViews, is there anyway I can obtain it or the codes to call it out?
In particular, my question is as follows:
Call out SumofSquare of Y(1) from an ARDL Equation
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

 Fe ddaethom, fe welon, fe amcangyfrifon
 Posts: 12066
 Joined: Tue Sep 16, 2008 5:38 pm
Re: Call out SumofSquare of Y(1) from an ARDL Equation
@sumsq(y(1))
Follow us on Twitter @IHSEViews
Re: Call out SumofSquare of Y(1) from an ARDL Equation
Hi Gareth,
Thank you for your reply and I found an error when I try to running the code. It returns me the error stating that '1 is not a valid index for vectorseriescoefficient Y in "SCALAR SUMSQ = TEST_EQ_Y0.@SUMSQ(Y(1))".
In my program code, given two generated series Y and X, first I estimate an ARDL equation with 0 lag length, then I try to obtain the sumofsquare of y(1), the codes are written as follows:
equation test_eq_y0.ls dy c y(1) x(1)
scalar sumsq = test_eq_y0.@sumsq(y(1))
May I know what is the problem causes the error occurs?
Thank you for your reply and I found an error when I try to running the code. It returns me the error stating that '1 is not a valid index for vectorseriescoefficient Y in "SCALAR SUMSQ = TEST_EQ_Y0.@SUMSQ(Y(1))".
In my program code, given two generated series Y and X, first I estimate an ARDL equation with 0 lag length, then I try to obtain the sumofsquare of y(1), the codes are written as follows:
equation test_eq_y0.ls dy c y(1) x(1)
scalar sumsq = test_eq_y0.@sumsq(y(1))
May I know what is the problem causes the error occurs?
Re: Call out SumofSquare of Y(1) from an ARDL Equation
Hi,
I think I have solved the problem. That is, I should direct specify the code as follow:
scalar sumsq = @sumsq(y(1))
I have another question. If I wish to obtain the sumsq of y(1) within a range of sample, for example, if there is 100 observations and I wish to only obtain the sumsq from obs 51 until 100, how can I do for that? Or am I just set the sample range from 51 to 100 will do? That is,
smpl 51 100
sumsq = @sumsq(y(1))
I think I have solved the problem. That is, I should direct specify the code as follow:
scalar sumsq = @sumsq(y(1))
I have another question. If I wish to obtain the sumsq of y(1) within a range of sample, for example, if there is 100 observations and I wish to only obtain the sumsq from obs 51 until 100, how can I do for that? Or am I just set the sample range from 51 to 100 will do? That is,
smpl 51 100
sumsq = @sumsq(y(1))

 Fe ddaethom, fe welon, fe amcangyfrifon
 Posts: 12066
 Joined: Tue Sep 16, 2008 5:38 pm
Re: Call out SumofSquare of Y(1) from an ARDL Equation
Just set the sample.
Follow us on Twitter @IHSEViews
Who is online
Users browsing this forum: No registered users and 3 guests