Using EViews 7, I would like to use different commands according to whether the sample size is odd or even;
is there a specific command that looks to this issue or you have already a nice solution ;o)
sample 2000q1 2010q1+!step
!length=@obssmpl
if !length=EVEN then ...
else (if ODD) ..
endif
distinguish odd /even numbers
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: distinguish odd /even numbers
Code: Select all
if @mod(!length,2) = 0 then
Who is online
Users browsing this forum: No registered users and 2 guests
