skip one observation in a sample

For questions regarding programming in the EViews programming language.

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

nesheus
Posts: 34
Joined: Tue Oct 26, 2010 11:55 am

skip one observation in a sample

Postby nesheus » Tue Dec 07, 2010 1:32 pm

Hello,
I have a sample from 1990Q1 to 2010Q3. I want to exclude the value in one quarter: 2008Q4.

This is what I am doing but is there a more efficient way of doing it, the version of eviews I have is 6

smpl 2008Q4 2008Q4
series mse1_10=na

smpl @first @last
scalar rmse1c_10=@sqrt(@mean(mse1_10))

thanks a lot.

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

skip one observation in a sample

Postby EViews Gareth » Tue Dec 07, 2010 1:33 pm

Smpl @first 2004q3 2005q1 @last

nesheus
Posts: 34
Joined: Tue Oct 26, 2010 11:55 am

Re: skip one observation in a sample

Postby nesheus » Tue Dec 07, 2010 1:53 pm

I want to exclude only one observation in 2008Q4. In your answer there are 2 quarters, why?

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

Re: skip one observation in a sample

Postby EViews Gareth » Tue Dec 07, 2010 2:22 pm

Sorry, that's what I get for responding on my phone :D

smpl @first 2008q3 2009q1 @last


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests