Create a vector which lists p-values from rolling regrssion

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

shahana
Posts: 3
Joined: Fri Jan 08, 2010 4:07 am

Create a vector which lists p-values from rolling regrssion

Postby shahana » Sun Jan 10, 2010 9:28 am

Hi,

When I conduct a rolling regression, I use the following command to to obtain the output, in addition to 2 vectors which contain the t-statistics and the beta (regression) co-efficients from each regression:

Code: Select all

for !horizon=1 to 155 smpl 1992m12+!horizon 1995m05+!horizon equation output{!horizon}.arch(1,1) y c x matrix output_coeff{!horizon}=output{!horizon}.@coefs matrix output_tstats{!horizon}=output{!horizon}.@tstats
However, I also want to create a similar vector which reports the p-values associated with the (respective) t-statistics from each regression. How can I go about doing the above?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13603
Joined: Tue Sep 16, 2008 5:38 pm

Re: Create a vector which lists p-values from rolling regrssion

Postby EViews Gareth » Sun Jan 10, 2010 12:45 pm

There is no inbuilt command to retrieve the p-values from an equation. You'll have to calculate them manually using the t-statistics.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests