Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: -icd9- crashes Stata

From   Jeph Herrin <>
Subject   Re: st: -icd9- crashes Stata
Date   Thu, 12 Dec 2013 09:10:09 -0500

Thanks Richard - though I typed it wrong in the post, I have it correct in the code:

 capture : icd9 check dxcode, gen(invalid)

so that is not the problem.


On 12/12/2013 8:37 AM, Richard Goldstein wrote:

you need to  move "check" to right after the "icd9"


On 12/12/13, 8:24 AM, Jeph Herrin wrote:


I have been trying to use the Stata command -icd9- to process a variable
containing (yes) ICD9 codes. The same fragment of code ran correctly in
the past, but now

  capture : icd9 dxcode, check gen(invalid)

causes Stata to crash every single time. The dataset is large (~60m obs,
5gb) but Stata has no problem eg merging or sorting the same dataset, so
I don't see why that should be an issue. Any thoughts? Any alternatives?
I do not often work with ICD9 codes.

-dxcode- is str7, if that matters.

*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index