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 at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: how recode a positive value on a variable to a particular negative value


From   daniel klein <klein.daniel.81@googlemail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: how recode a positive value on a variable to a particular negative value
Date   Fri, 28 Sep 2012 17:39:17 +0200

Erik,

what exactly makes you think -recode- does not allow negative values?
That is, "[s]ay exactly what you typed and exactly what Stata typed
(or did) in response. N.B. exactly! If you can, reproduce the error
with one of Stata's provided datasets or a simple concocted dataset
that you include in your posting. "
(http://www.stata.com/support/faqs/resources/statalist-faq/#stata)

Best
Daniel

-- 
Dear Statalist.
I am trying to recode positive values on a specific variable into
particular negative values.
e.g:
recode year (1990 = -156) (1991= -144)
and so on.
However, recode does not allow a negative value it seems.
Any input on this problem would be very appreciated.
Regards,
Erik.
*
*   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