use Monte Carlo method to find the critical values

For questions regarding programming in the EViews programming language.

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

yuwenche
Posts: 4
Joined: Mon Jun 21, 2010 8:30 am

use Monte Carlo method to find the critical values

Postby yuwenche » Tue Jul 20, 2010 8:43 am

I intend to use Monte Carlo method to find the critical values from an asymptotic distribution. In the following program I restrict certain coefficients and perform the wald test to find F-statistic. However, I have a problem to save the correct F-statistic for 10,000 replications. Can anyone enlighten me where I am wrong?

equation eq1.ls sz c t D1 D2 D3 z1(-1) z2(-1) z3(-1) z3(-2)
eq1.wald c(8)=0,c(9)=0
series fs(!repc)= eq1.@f 'save F-statistic as a series containing 10,000 values

yuwenche
Posts: 4
Joined: Mon Jun 21, 2010 8:30 am

Re: use Monte Carlo method to find the critical values

Postby yuwenche » Sun Jul 25, 2010 3:53 am

I have solved this problem by the following link.http://forums.eviews.com/viewtopic.php? ... t&sd=a#p18
I intend to use Monte Carlo method to find the critical values from an asymptotic distribution. In the following program I restrict certain coefficients and perform the wald test to find F-statistic. However, I have a problem to save the correct F-statistic for 10,000 replications. Can anyone enlighten me where I am wrong?

equation eq1.ls sz c t D1 D2 D3 z1(-1) z2(-1) z3(-1) z3(-2)
eq1.wald c(8)=0,c(9)=0
series fs(!repc)= eq1.@f 'save F-statistic as a series containing 10,000 values


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests