cutting samples

For questions and discussion related to reading in and working with data.
soju
Posts: 4
Joined: Wed Jun 30, 2010 12:20 am

cutting samples

Unread post by soju »

Hi there
I was trying to cut some subperiods of my data, say i have 1000 data points of two series aa and bb, and I only want to use the second half of them :

Code: Select all

open data d:\a.rat
data(fromat=rat,org=col) 500 1000 aa bb
but the data I actually get is only the first half of the data.
I've read the manual it said one can set the start and end under instruction "data"
but it just dont work here. How come?

by the way, I tried to use smpl as well, such as:

Code: Select all

open data d:\a.rat
data(fromat=rat,org=col) / aa bb
smpl 500 1000
com..... 
the program still runs on the full sample to do the whole sample estimation, only supply a window (500-1000) of results.

how should I do it? Thanks
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: cutting samples

Unread post by TomDoan »

Isn't the second of these what you want? If it isn't then I'm not sure I quite understand what you're trying to do. If you just want to create a new dataset, read in the full one and do a COPY instruction over the range you want to create a new file.

You can skip early data on input from a RATS or spreadsheet file only if you're going from a dated file into a dated workspace.
Post Reply