Hi,
I have a dataset with about 400 observations. I want to sort them randomly but I'm not sure how.
Any help appreciated. Thanks!
How do I randomize the order of data?
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: How do I randomize the order of data?
Generate a series of random numbers:
Then sort the workfile by it (sort button).
Code: Select all
Series myrand = @rnd
-
jennystats
- Posts: 6
- Joined: Thu Feb 07, 2013 8:32 pm
Re: How do I randomize the order of data?
Hey Gareth,
Thanks for the help. I generated the random series but when I open my other series (let's just call it Series1) there is only the option to sort in ascending or descending order, not by another series.
It says:
Sort key
<Observation Order> or SERIES1 in a dropdown box
and then Ascending or Descending in another dropdown box immediately to the right
Thanks for the help. I generated the random series but when I open my other series (let's just call it Series1) there is only the option to sort in ascending or descending order, not by another series.
It says:
Sort key
<Observation Order> or SERIES1 in a dropdown box
and then Ascending or Descending in another dropdown box immediately to the right
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: How do I randomize the order of data?
Sorry, use Proc->sort workfile page when looking at a workfile.
Who is online
Users browsing this forum: No registered users and 2 guests
