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
series with embedded smpl?
Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13318
- Joined: Tue Sep 16, 2008 5:38 pm
Re: series with embedded smpl?
Code: Select all
sersx.adjust =25 @ 2017q1 2017q2
Follow us on Twitter @IHSEViews
-
- EViews Developer
- Posts: 563
- Joined: Thu Apr 25, 2013 7:48 pm
Re: series with embedded smpl?
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.:
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
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13318
- Joined: Tue Sep 16, 2008 5:38 pm
Re: series with embedded smpl?
Thanks for the quick and useful replies.
Who is online
Users browsing this forum: No registered users and 41 guests