Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

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


From   daniel klein <klein.daniel.81@googlemail.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 01:54:47 +0200

Anna,

I cannnot replicate the error message. Your code works fine for me.
(Stata 12.1 IC and  Stata 11.2, both IC versions both on Win7 machine)

I also have no idea what is going on there.

Best
Daniel

-- 
[...]
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
*
*   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/


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