Bookmark and Share

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]

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


From   daniel klein <[email protected]>
To   [email protected]
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index