COEFFICIENTS AND P-VALUES FROM OLS

For questions regarding programming in the EViews programming language.

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

molugbode
Posts: 15
Joined: Mon Jun 01, 2009 7:43 am

COEFFICIENTS AND P-VALUES FROM OLS

Postby molugbode » Wed Jul 01, 2009 12:08 pm

Many thanks for your suggestions.

I have incorporated the suggested programme below into my existing programme.

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

However I'm still not able to get the p-values for the regression coefficients when I run the model. Is it still possible to run all the 31 model simultaneously using the table option ? The only output with all the regression parameters was for only one dependent variable. The other 30 were ignored.

Can you kindly provide a sample programme ?

Many thanks

molugbode
Posts: 15
Joined: Mon Jun 01, 2009 7:43 am

Re: COEFFICIENTS AND P-VALUES FROM OLS

Postby molugbode » Thu Jul 09, 2009 6:58 am

Problem solved. Many thanks for your suggestion.

fmgoto
Posts: 76
Joined: Thu Jan 15, 2009 5:01 am
Location: Brasilia, Brazil

Re: COEFFICIENTS AND P-VALUES FROM OLS

Postby fmgoto » Thu Jul 23, 2009 11:31 am

How did you solve it?

I need to retrieve the p-value from thousands of OLS and store them in a table.

Thank You, Fabio

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

Re: COEFFICIENTS AND P-VALUES FROM OLS

Postby EViews Gareth » Thu Jul 23, 2009 11:42 am

If you want the p-values from an equation object, the easiest thing to do is to calculate them yourself:

Code: Select all

!df = eq01.@regobs - eq01.@ncoef vector pvals = @tdist(eq01.@tstats,!df)

fmgoto
Posts: 76
Joined: Thu Jan 15, 2009 5:01 am
Location: Brasilia, Brazil

Re: COEFFICIENTS AND P-VALUES FROM OLS

Postby fmgoto » Thu Jul 23, 2009 12:03 pm

I thought so... Thank You!


Return to “Programming”

Who is online

Users browsing this forum: paues and 2 guests