cutting samples

For questions and discussion related to reading in and working with data.

cutting samples

Postby soju » Wed Dec 15, 2010 8:33 pm

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
soju
 
Posts: 6
Joined: Wed Jun 30, 2010 12:20 am

Re: cutting samples

Postby TomDoan » Thu Dec 16, 2010 7:49 am

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.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm


Return to Data: Reading, Writing, Transforming

Who is online

Users browsing this forum: No registered users and 1 guest

cron