how to sort only one series
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
how to sort only one series
dear all,
can you help me to sort only one series in ascending order in version 5?
i think series.sort is not available in version 5.
thanks,
sliang
can you help me to sort only one series in ascending order in version 5?
i think series.sort is not available in version 5.
thanks,
sliang
Re: how to sort only one series
I think the correct syntax would be:
Code: Select all
sort series-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: how to sort only one series
Unfortunately that would sort the other series in the workfile by the target series too.
Other than by copying that single series into a new page, sorting that page, then copying it back, I cannot think of a way to do this in EViews 5.
Other than by copying that single series into a new page, sorting that page, then copying it back, I cannot think of a way to do this in EViews 5.
Re: how to sort only one series
How about this?
Edit: Gareth was right and I corrected the mistake.
Code: Select all
stom(series_y,vector_y)
vector sort_y = @sort(vector_y)
mtos(sort_y,series_y)
delete vector_y sort_y
Last edited by trubador on Thu May 14, 2009 9:11 am, edited 1 time in total.
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: how to sort only one series
That works in 6 (although I think you've got the second mtos wrong - you probably want sort_y not vector_y), but @sort was not implemented in EViews 5.
Re: how to sort only one series
Thank you for your reply.
I wrote part of the program like this,
1. pagecopy(page=temp) x
2. sort x
3. copy x dest_name
4. pageselect untitled
I cannot figure out how to copy the sorted series
x in the newly created page, i.e., temp, back to
the original page, i.e., untitled.
In other word, how to refer the dest_name to the
original page in the third line above.
I wrote part of the program like this,
1. pagecopy(page=temp) x
2. sort x
3. copy x dest_name
4. pageselect untitled
I cannot figure out how to copy the sorted series
x in the newly created page, i.e., temp, back to
the original page, i.e., untitled.
In other word, how to refer the dest_name to the
original page in the third line above.
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: how to sort only one series
You want something like this:
Code: Select all
copy temp\x untitled\x
Re: how to sort only one series
It did not work because I've got an error message that says 'temp\x' is not defined.
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: how to sort only one series
A full set of commands would be something like:
I presume you have EViews 5.1?
Code: Select all
pagecopy(page=temp) x
sort x
copy temp\x untitled\x
pagedelete temp
Re: how to sort only one series
I bought and installed it around July 2004.
I am not so sure which version is it.
I am not so sure which version is it.
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: how to sort only one series
help->about EViews
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: how to sort only one series
It worked.
Thank you very much.
Thank you very much.
Who is online
Users browsing this forum: No registered users and 2 guests
