Statalist


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

RE: st: Odd behavior


From   "Pitts, Stephen R. (CDC/CCHIS/NCHS) (CTR)" <srp3@cdc.gov>
To   statalist@hsphsun2.harvard.edu
Subject   RE: st: Odd behavior
Date   Wed, 28 May 2008 12:22:50 -0400

Thanks Jeph and Eva; 

I still don't know what went wrong, but I fixed it by replacing the
offending commands with (apparently) identical characters from lines
that had worked successfully, then overtyping the correct label number.
There must have been an invisible character screwing things up for all
labels greater than 14. I suspect that when I pasted columns of
diagnostic code ranges from Excel into the Stata editor, it brought an
invisible tab-character or something with it. I then did search/replace
to convert dashes to slashes and other things to make the problem more
opaque.

Cheers

Steve Pitts

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Jeph Herrin
Sent: Wednesday, May 28, 2008 10:54 AM
To: statalist@hsphsun2.harvard.edu
Subject: Re: st: Odd behavior

Hi Steve,

Are you pasting your commands exactly? Because what you have here looks
fine.

Jeph


Pitts, Stephen R. (CDC/CCHIS/NCHS) (CTR) wrote:
> Dear Statalisters,
> 
> I'm using Stata v 10 on Windows XP Pro, trying to assign labels to 
> about
> 25 groups of diagnostic code ranges, created using the -icd9 gen- 
> command in Stata. It works just fine, until I've assigned the first 13

> groups, then I suddenly get the following error. I also get a syntax 
> error if I make dxgroup 14 the first label assigned, after removing 
> the ", add".
> ____________________
> 
> . label define dxgroup 12 "Symptoms, signs, and ill-defined 
> conditions", add
> 
> . label define dxgroup 13 "Injury and poisoning", add
> 
> . label define dxgroup 14 "Fractures", add invalid syntax r(198); 
> __________________
> 
> Does anybody know what I've run into here?
> 
> Thanks
> 
> Steve Pitts
> 
> 
> 
> 
> 
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
> 
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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