Hello.
How can a take a series and subtract the value of a specific date from all observations.
For example, a series of annual data with three observations 2019= 1, 2020=3, 2021=5
How do I create new series where I'm removing the 2020 value from all 3 years? I could just subtract 3 but I'd like it to find the value of that observation so its more flexible.
Thanks!
Delete value of a certain observation from a series
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
- Posts: 199
- Joined: Sun Mar 01, 2015 5:01 pm
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13401
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Delete value of a certain observation from a series
Code: Select all
series new_x = x - @elem(x, "2000")
Follow us on Twitter @IHSEViews
-
- Posts: 199
- Joined: Sun Mar 01, 2015 5:01 pm
Re: Delete value of a certain observation from a series
Fantastic, thanks
Who is online
Users browsing this forum: No registered users and 2 guests