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, is already up and running.

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

st: AW: recoding a variable

From   "Martin Weiss" <>
To   <>
Subject   st: AW: recoding a variable
Date   Thu, 18 Feb 2010 13:52:52 +0100


replace var=var>.5


-----Ursprüngliche Nachricht-----
[] Im Auftrag von Data Analytics
Gesendet: Donnerstag, 18. Februar 2010 01:12
Betreff: st: recoding a variable


I got some very good quick advice on a looping question I asked 
earlier.  I have another question.  Suppose I have a variable with 
values that range between 0 ands 1.  I simply want to recode this so 
that any value greater than 0.5 becomes a 1, and 0 otherwise.  How do I 
do this?




Walter R. Paczkowski, Ph.D.
Data Analytics Corp.
44 Hamilton Lane
Plainsboro, NJ 08536
(V) 609-936-8999
(F) 609-936-3733

*   For searches and help try:

*   For searches and help try:

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