因为处理的数据较大,每次进行append的时候总是提示“op. sys. refuses to provide memory Stata's data-storage memory manager has already allocated 1472m bytes and it just attempted to allocate another 16m bytes. The operating system said no. Perhaps you are running another memory-consuming task and the command will work later when the task completes. Perhaps you are on a multiuser system that is especially busy and the command will work later when activity quiets down. Perhaps a system administrator has put a limit on what you can allocate; see help memory. Or perhaps that's all the memory your computer can allocate to Stata.”。在网络上搜集了相关的解决办法,依旧没有解决这个问题。我的电脑内存是4G的,可是stata每次最多只能提供1472M内存,在stata11中set memory处理以后还是最多提供1472M内存,在内存8G的电脑上试过了,结果还是这样。
实在没有办法,只有请教连老师了,有什么解决方案吗?谢谢连老师
stata 能够分配的内存决定于你的电脑中留存的内存大小,因为系统文件和各种应用程序的安装都会占用内存。
我建议在 append 之前,可以使用 keep 或 drop 命令仅保留后续分析中使用的变量,其他那些不必要的变量可以全部删除,这可以节省很多存储空间。分别对两份数据执行上述“瘦身”操作后再 append。如果这个方法也不奏效,我们再行商议。