Programming a table

For questions regarding programming in the EViews programming language.

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

miorinnovo
Posts: 199
Joined: Sun Mar 01, 2015 5:01 pm

Programming a table

Postby miorinnovo » Fri Jan 12, 2018 8:03 pm

Hi,

How can I program a table so that the data will update with the chosen sample length.

Right now in my table I have @mean(variable). the mean of that variable does not change even if I change the length of my sample. How can I have the table react to sample length?

Thanks

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

Re: Programming a table

Postby EViews Gareth » Fri Jan 12, 2018 8:03 pm

You cannot.
Follow us on Twitter @IHSEViews

miorinnovo
Posts: 199
Joined: Sun Mar 01, 2015 5:01 pm

Re: Programming a table

Postby miorinnovo » Fri Jan 12, 2018 8:15 pm

Ok thanks. I guess i just have to rerun the table each time.

miorinnovo
Posts: 199
Joined: Sun Mar 01, 2015 5:01 pm

Re: Programming a table

Postby miorinnovo » Sat Jan 13, 2018 3:37 pm

IS there a way to give data for different samples? For example variable a's mean from 2010-2012 but variable b's mean from 2010-2015?

thanks

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

Re: Programming a table

Postby EViews Gareth » Sat Jan 13, 2018 4:59 pm

What do you mean by "give"?
Follow us on Twitter @IHSEViews

miorinnovo
Posts: 199
Joined: Sun Mar 01, 2015 5:01 pm

Re: Programming a table

Postby miorinnovo » Tue Jan 16, 2018 7:22 am

I meant display, but i found a work around...

Actually on another point, I'm using the (cov=hac) version of a univariate least squares regression. Is there a way to display the resulting p value in a tables?

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

Re: Programming a table

Postby EViews Gareth » Tue Jan 16, 2018 9:01 am

Which p-value?
Follow us on Twitter @IHSEViews

miorinnovo
Posts: 199
Joined: Sun Mar 01, 2015 5:01 pm

Re: Programming a table

Postby miorinnovo » Tue Jan 16, 2018 9:17 am

The p value for the constant and/or and other variable in the regression.

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

Re: Programming a table

Postby EViews Gareth » Tue Jan 16, 2018 9:38 am

Follow us on Twitter @IHSEViews

miorinnovo
Posts: 199
Joined: Sun Mar 01, 2015 5:01 pm

Re: Programming a table

Postby miorinnovo » Wed Jan 24, 2018 9:31 am

Thanks.

As a follow up, can you tell em how to get the p-value for the Breusch-Godfrey Serial Correlation LM Test in a table?

Using

Code: Select all

equation.@pval(1)
gives me the pvalue for the first variable in that equation. How do I adjust this line of code to get the p-value from the f-test form the Breusch-Godfrey?

Thanks a lot.

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

Re: Programming a table

Postby EViews Gareth » Wed Jan 24, 2018 9:34 am

Follow us on Twitter @IHSEViews

miorinnovo
Posts: 199
Joined: Sun Mar 01, 2015 5:01 pm

Re: Programming a table

Postby miorinnovo » Thu Feb 01, 2018 1:24 pm

Thanks again. I'm using the code from this linked post:

Code: Select all

freeze(tab1) eq01.wald c(1)=0
scalar f_pvalue = @val(tab1(6,4))


and this may be a dumb question but why does the p value for the f-stat that shows up in the "freeze" table not exactly the same as the Prob(Wald F-statistic) that gets reported in the estimation output for the same equaiton?

Thanks again

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

Re: Programming a table

Postby EViews Gareth » Thu Feb 01, 2018 1:44 pm

Do you have more than one coefficient?
Follow us on Twitter @IHSEViews

miorinnovo
Posts: 199
Joined: Sun Mar 01, 2015 5:01 pm

Re: Programming a table

Postby miorinnovo » Thu Feb 01, 2018 1:49 pm

I do but I made this adjustment to the code c(1)=c(2)=0.

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

Re: Programming a table

Postby EViews Gareth » Thu Feb 01, 2018 2:38 pm

The report F-stat is the test that all the coefficients other than the constant are zero.
Follow us on Twitter @IHSEViews


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 20 guests