Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: transforming six categories variable into two categories variable


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: transforming six categories variable into two categories variable
Date   Tue, 13 May 2003 11:47:09 +0100

massimiliano stacchini and/or baldo continis
> 
> I've a discrete variable composed by six categories
> and I want to reduce the number of categories from six
> to two. In other terms I have to unify three
> categories into one and residual three categories into
> another one.
> How can I get this new variable?
> thanks for your suggestion.

There are lots of ways to do it. What is 
easiest depends on the details. 

-recode- is one way.  

Nick 
[email protected] 


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index