Page 1 of 1

question on sample selection

Posted: Mon Feb 26, 2018 9:27 am
by miorinnovo
Hi,

I'd like to analyse properties of the first month of each quarter in a data series. I'm thinking I should just create a new series with NA's for all other months but I'm wondering what is a faster way to create the sample than this

Code: Select all

smpl 2000:01 2000:01 2000:04 2000:04 etc etc
Thanks!

Re: question on sample selection

Posted: Mon Feb 26, 2018 9:57 am
by startz
Maybe

Code: Select all

smpl if @month=1 or @month=4 or @month=7 or @month=10

Re: question on sample selection

Posted: Mon Feb 26, 2018 10:13 am
by miorinnovo
Thank you!

Re: question on sample selection

Posted: Mon Feb 26, 2018 12:43 pm
by EViews Gareth

Code: Select all

smpl if @quarter<>@quarter(-1)

Re: question on sample selection

Posted: Mon Feb 26, 2018 3:36 pm
by EViews Matt
Or,

Code: Select all

smpl if @mod(@month,3)=1