I want to create a temporary series name that exists only within the program but does not become a permanent series name in the workfile.
A simple (and silly) example is in the following program:
smpl 15q1 19q4
series lemp = log(emp)
'lemp is only an intermediate variable used as part of an expression to create another series; I do not want it as part of the workfile
series dlemp=d(lemp)
make series name temporary
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3798
- Joined: Wed Sep 17, 2008 2:25 pm
Re: make series name temporary
On easy thing is to manually delete the series.
Code: Select all
d lemp
Re: make series name temporary
yes, i can delete. In real life, i have created a lot of temporary variables by looping. I can delete them at the appropriate place after done using them, but this is extra code that also has to be positioned properly in the program.
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3798
- Joined: Wed Sep 17, 2008 2:25 pm
Re: make series name temporary
I don't think there is a really good way to do this. (Gareth?) You can create a local subroutine, in which all the created series disappear at the end of the subroutine. But that's not very helpful if you also want to keep quite a few series.
As a kludge, you could do something like name all your temporary series things like temp_x, temp_y and then use a wildcard delete at the end
As a kludge, you could do something like name all your temporary series things like temp_x, temp_y and then use a wildcard delete at the end
Code: Select all
d temp_*-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: make series name temporary
That's what I do.I don't think there is a really good way to do this. (Gareth?) You can create a local subroutine, in which all the created series disappear at the end of the subroutine. But that's not very helpful if you also want to keep quite a few series.
As a kludge, you could do something like name all your temporary series things like temp_x, temp_y and then use a wildcard delete at the endCode: Select all
d temp_*
Re: make series name temporary
ok, that is what i will do. Thanks for the advice.
Who is online
Users browsing this forum: No registered users and 2 guests
