Statalist The Stata Listserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Re: memory required for -merge-

From   "Michael Blasnik" <>
To   <>
Subject   Re: st: Re: memory required for -merge-
Date   Thu, 09 Mar 2006 09:25:43 -0500

Really, there's no "hopefully" about it. The place name contains few enough values and is short enough to fit in a value label. The revised dataset will only add about 3 bytes per observation (an int and a byte), so it will only require about 60MB of RAM which will easily fit within the 666MB remaining.


----- Original Message ----- From: "Ada Ma" <>
To: <>
Sent: Thursday, March 09, 2006 9:04 AM
Subject: Re: st: Re: memory required for -merge-

Turning the place_name variable from string to numeric with labels
would save a lot of bytes and (hopefully) make the merge possible.

rename place_name place_name1
encode place_name1, gen(place_name) label(place_name)
drop place_name1

On 3/9/06, Michael Blasnik <> wrote:
You've gotten several replies that dance around the simple answer -- you are
trying to add a str39 variable to a dataset with more than 20 million
observations. That will require about 39*20m= 780MB of additional memory
and you've only got about 666MB free.

Michael Blasnik

*   For searches and help try:

© Copyright 1996–2021 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index