|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: RE: Slicing data set
What about dropping the saved data from the large data set - if that is
allowed in your application (no overlap between data-slices).
I mean you could do the following:
***************************
use <somedata>
preserve
keep if <somecondition>
save <sliceofsomedata>
restore
drop if <somecondition>
preserve
...
***************************
wouldn't that increase speed because the original data set gets smaller
and you save a last preserve?
Johannes
> No, I don't think so. But -savesome- from SSC should mean less typing
> for you.
>
> Nick
> [email protected]
>
> Pedro Martins
>
> I want to save subsets of a large data set into smaller files. Since
> <save> doesn't allow for an <if> condition, I'm using a loop include
> <preserve> and <restore>. Is there a more time-efficient way of
> slicing one's data?
>
>
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/