drop continues category by @drop(? to ?)

For requesting general information about EViews, sharing your own tips and tricks, and information on EViews training or guides.

Moderators: EViews Gareth, EViews Moderator

ch2324
Posts: 133
Joined: Fri May 10, 2013 10:52 am

drop continues category by @drop(? to ?)

Postby ch2324 » Fri Feb 12, 2016 8:16 am

Hi
I have 200 obs monthly data, i use this command @expand(@monthly, @dropfirst) in the regression box (drop the first), just i would like to drop this 2-3-4-5-6. i can write all @drop (@drop(2), @drop(3),.....,drop(6)) but this is long way. :(
how can drop continues category whith short command,

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

Re: drop continues category by @drop(? to ?)

Postby EViews Gareth » Fri Feb 12, 2016 9:31 am

Don't understand the question.
Follow us on Twitter @IHSEViews

ch2324
Posts: 133
Joined: Fri May 10, 2013 10:52 am

Re: drop continues category by @drop(? to ?)

Postby ch2324 » Fri Feb 12, 2016 10:07 am

write all this function @drop take long time
log(m) c ar(1) @expand(@monthly, @drop(2), @drop(3), @drop(4), @drop(5), @drop(6), @drop(7), @drop(8), @drop(9))
are there a short way to make drop from 2 to 9,

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

Re: drop continues category by @drop(? to ?)

Postby EViews Gareth » Fri Feb 12, 2016 10:14 am

Why use @expand at all. If you only want to include four dummies, include them manually.

Code: Select all

log(m) c ar(1) @month=1 @month=10 @month=11 @month=12
Follow us on Twitter @IHSEViews

ch2324
Posts: 133
Joined: Fri May 10, 2013 10:52 am

Re: drop continues category by @drop(? to ?)

Postby ch2324 » Fri Feb 12, 2016 10:20 am

I understand now. thanks a lot!


Return to “General Information and Tips and Tricks”

Who is online

Users browsing this forum: No registered users and 18 guests