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

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

st: transforming observations

From   Mintewab Bezabih <>
To   "" <>
Subject   st: transforming observations
Date   Tue, 21 Feb 2012 15:46:27 +0100

Dear statalisters, 

I need to transform observations in my dataset (3476 obervations by 40 variables) into categorical variables based on the following set of rules :

observation x=0 if temp<=0
observation x=1 if temp==30
observation x=x if temp>=31

As you could imagine it would take me ages to do that one by one. Is there a compact way of doing this?

Many thanks in advance
*   For searches and help try:

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