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

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

From |
Nick Cox <njcoxstata@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: Unable to use "replace" on specific values (but others work ok) |

Date |
Tue, 16 Oct 2012 18:57:20 +0100 |

I believe you, but I see nothing different. I guess that others will see what you see if and only if their mailer behaves like yours. But the more tools there are to spot this kind of thing, the better. Laura is signalling that your mailer may make odd characters evident. The same is true of many good text editors. Nick On Tue, Oct 16, 2012 at 6:14 PM, Laura Gibbons <gibbonsl@u.washington.edu> wrote: > I know the problem has been solved, but I just wanted to note that in my > DOS-based email client, the problem is obvious (see how it displays below). > > > On Tue, 16 Oct 2012, Anna Reimondos wrote: > >> Hello statalisters, >> I am currently coding occupations of respondents in a survey to the >> Australian New Zealand Standard Classification of Occupations >> (ANZSCO). >> A rather odd thing is happening where I am able to assign the ANZSCO >> code in some cases, but not others! >> >> >> For example in the code below there is no problem assigning the value >> 121312 to case 1, and no problem assigning the value 121314 to case 2. >> However for case 3 who I want to give the code 121313 the code returns >> an error message '121313 invalid name' r(198). >> >> clear >> set obs 3 >> gen var1=. >> replace var1=121312 if _n==1 >> replace var1=121314 if _n==2 >> >> replace var1=121313 if _n==3 //Problem >> >> The problem is not just with 121313, but it also does not seem to like >> 254499, 323112 and 821311 among others. >> I don't understand what is happening! >> >> I am using Stata 12.1, but have also tried this in 11.2 and get the >> same error code. * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/

**Follow-Ups**:**Re: st: Unable to use "replace" on specific values (but others work ok)***From:*Anna Reimondos <areimondos@gmail.com>

**References**:**st: Unable to use "replace" on specific values (but others work ok)***From:*Anna Reimondos <areimondos@gmail.com>

**Re: st: Unable to use "replace" on specific values (but others work ok)***From:*Laura Gibbons <gibbonsl@u.washington.edu>

- Prev by Date:
**Re: st: Unable to use "replace" on specific values (but others work ok)** - Next by Date:
**Re: st: Drawing sample using bootstrap** - Previous by thread:
**Re: st: Unable to use "replace" on specific values (but others work ok)** - Next by thread:
**Re: st: Unable to use "replace" on specific values (but others work ok)** - Index(es):