|Using a dataset that won't fit into RAM
|Alan Riley, StataCorp
Load the dataset using the virtual memory system. This step requires you to start Stata with the /k option set large enough to hold the dataset. Once the dataset is loaded into memory, use the compress command to see if the variables can be stored using less memory. If so, save this dataset and exit from Stata. If you can now load the dataset into memory using only the available memory on the computer, then the problem is solved.
If your dataset is compressed and still will not fit into the available RAM of your computer, then use only those variables from the dataset that are necessary to run the commands in your analysis. If this allows you to load in the dataset using only the available memory on the computer, then the problem is solved.
|Warning: If your analysis requires that you use the virtual memory system, then your analysis will take an exceedingly long time and will probably not finish before your patience runs out.
Classroom and web training
Teaching with Stata
Statalist: The Stata Forum
Last updated: 16 November 2022
StataCorp LLC (StataCorp) strives to provide our users with exceptional products and services. To do so, we must collect personal information from you. This information is necessary to conduct business with our existing and potential customers. We collect and use this information only where we may legally do so. This policy explains what personal information we collect, how we use it, and what rights you have to that information.
These cookies are essential for our website to function and do not store any personally identifiable information. These cookies cannot be disabled.
Please note: Clearing your browser cookies at any time will undo preferences saved here. The option selected here will apply only to the device you are currently using.