Page 1 of 1

cutting samples

Posted: Wed Dec 15, 2010 7:33 pm
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

Re: cutting samples

Posted: Thu Dec 16, 2010 6:49 am
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.