Page 1 of 1

drop continues category by @drop(? to ?)

Posted: Fri Feb 12, 2016 8:16 am
by ch2324
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,

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

Posted: Fri Feb 12, 2016 9:31 am
by EViews Gareth
Don't understand the question.

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

Posted: Fri Feb 12, 2016 10:07 am
by ch2324
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,

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

Posted: Fri Feb 12, 2016 10:14 am
by EViews Gareth
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

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

Posted: Fri Feb 12, 2016 10:20 am
by ch2324
I understand now. thanks a lot!