p-value for t-test

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

mr.interested
Posts: 16
Joined: Wed Jul 14, 2010 5:57 am

p-value for t-test

Postby mr.interested » Fri Jul 23, 2010 5:46 am

OK, so I encounter the following error when I compute p-value. I calculate it as follows:

Code: Select all

'Calculates number of observations: !number = @obs(series1) 'Calculates t-statistic: !t = (@mean(series1)-@mean(series2))/(@stdev(series1)/@sqr({!number})) 'Calculates p-value for t-distribution with N-1 degrees of freedom: '!p = @tdist(!t,({!number}-1))
I compare the values of !t and !p with those from Tests for Descriptive Stats / Simple Hypothesis Tests. While the t-statistic is the same for all series I test, there's a problem with p-value. In same cases the !p returns the correct value, but in some the !p takes a value of, for example, about 8, instead of 0. Is it a bug of EViews or am I doing something wrong?

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: p-value for t-test

Postby EViews Glenn » Fri Jul 23, 2010 9:04 am

I'm afraid that you are going to have to be a lot more specific about what you are doing and what data you are using for us to be able to answer the question.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests