Page 1 of 1

series with embedded smpl?

Posted: Wed Aug 02, 2017 12:24 pm
by cbonham
Is there any way to manipulate a series over a specified sample period without issuing a separate smpl command?

For example, in other software packages I have worked with it is possible to write something like

series 2017Q1 2017Q2 sersx = 25
series 2017Q3 2017Q3 sersx = 30
series 2017Q4 2017Q4 sersx = 40

to create sersx for 2017Q1-17Q4 as
25, 25, 30, 40

Thanks
Carl

Re: series with embedded smpl?

Posted: Wed Aug 02, 2017 1:13 pm
by EViews Gareth

Code: Select all

sersx.adjust =25 @ 2017q1 2017q2

Re: series with embedded smpl?

Posted: Wed Aug 02, 2017 1:21 pm
by EViews Matt
Hello,

Avoiding the use of smpl or sample objects, when you're assigning values to sequential observations the series fill proc is useful, e.g.:

Code: Select all

series sersx sersx.fill(o=2017Q1) 25, 25, 30, 40

Re: series with embedded smpl?

Posted: Wed Aug 02, 2017 1:48 pm
by EViews Gareth
His is better than mine.

Re: series with embedded smpl?

Posted: Wed Aug 02, 2017 6:53 pm
by cbonham
Thanks for the quick and useful replies.