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
output 'Prob' in a regression results
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: output 'Prob' in a regression results
Which version of EViews?
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: output 'Prob' in a regression results
You'll have to calculate it.
Code: Select all
!pval = @tdist(!tstat, !df)
Re: output 'Prob' in a regression results
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
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: output 'Prob' in a regression results
Because EViews 7 doesn't have that functionality.
Re: output 'Prob' in a regression results
thanks for your patience. final question, does any other version have this function?Because EViews 7 doesn't have that functionality.
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: output 'Prob' in a regression results
Yes, EViews 8.
Re: output 'Prob' in a regression results
Great, could you let me know how to write the syntax, I will update my Eviews later, many thanks.Yes, EViews 8.
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: output 'Prob' in a regression results
Code: Select all
equation.@pval(1)
Re: output 'Prob' in a regression results
Many thanks for your help. will try later.
Who is online
Users browsing this forum: No registered users and 1 guest
