Page 1 of 1

output 'Prob' in a regression results

Posted: Thu Aug 01, 2013 11:07 am
by suchen
Hi
I am a new user of Eviews programming

I run a regression model and got the following results:

Variable Coefficient Std. Error t-Statistic Prob.
C 0.000672 0.000807 0.831947 0.4055
FTALLSH 0.678808 0.050166 13.53123 0.0000
IR 0.147604 0.052164 2.829590 0.0047

I am exporting the results of coefficeints, std errors, t-stats, and probs of each variable, using

setcell(results, 4,2, c(2), "r", 5.2) for coefficients
setcell(results, 4,2, @stderrs(2), "r", 5.2) for std errors
setcell(results, 4,2, @tstats(2), "r", 5.2) for t-stats

my question is how to do for prob??

Many thanks in advance

Re: output 'Prob' in a regression results

Posted: Thu Aug 01, 2013 11:16 am
by EViews Gareth
Which version of EViews?

Re: output 'Prob' in a regression results

Posted: Thu Aug 01, 2013 11:20 am
by suchen
Eviews 7

Re: output 'Prob' in a regression results

Posted: Thu Aug 01, 2013 11:32 am
by EViews Gareth
You'll have to calculate it.

Code: Select all

!pval = @tdist(!tstat, !df)

Re: output 'Prob' in a regression results

Posted: Thu Aug 01, 2013 11:51 am
by suchen
You'll have to calculate it.

Code: Select all

!pval = @tdist(!tstat, !df)

thanks for your reply.

But the prob values are already in the last column of the regression results, why cannot export directly as we did for coefficeint, t-stat, and std. error?

using sth to replace @stderrs : setcell(results, 4,2, @stderrs(2), "r", 5.2) for std errors

Re: output 'Prob' in a regression results

Posted: Thu Aug 01, 2013 11:53 am
by EViews Gareth
Because EViews 7 doesn't have that functionality.

Re: output 'Prob' in a regression results

Posted: Thu Aug 01, 2013 11:59 am
by suchen
Because EViews 7 doesn't have that functionality.
thanks for your patience. final question, does any other version have this function?

Re: output 'Prob' in a regression results

Posted: Thu Aug 01, 2013 12:02 pm
by EViews Gareth
Yes, EViews 8.

Re: output 'Prob' in a regression results

Posted: Thu Aug 01, 2013 12:06 pm
by suchen
Yes, EViews 8.
Great, could you let me know how to write the syntax, I will update my Eviews later, many thanks.

Re: output 'Prob' in a regression results

Posted: Thu Aug 01, 2013 12:08 pm
by EViews Gareth

Code: Select all

equation.@pval(1)

Re: output 'Prob' in a regression results

Posted: Thu Aug 01, 2013 12:12 pm
by suchen
Many thanks for your help. will try later.