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

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


From   Roger Newson <roger.newson@kcl.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: transforming six categories variable into two categories variable
Date   Tue, 13 May 2003 12:08:30 +0100

At 12:32 13/05/03 +0200, baldo continis wrote:
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.
Use the -recode- command. Look in the online help under -help recode-, or in the manuals under -[R] recode-.

Roger


--
Roger Newson
Lecturer in Medical Statistics
Department of Public Health Sciences
King's College London
5th Floor, Capital House
42 Weston Street
London SE1 3QD
United Kingdom

Tel: 020 7848 6648 International +44 20 7848 6648
Fax: 020 7848 6620 International +44 20 7848 6620
or 020 7848 6605 International +44 20 7848 6605
Email: roger.newson@kcl.ac.uk

Opinions expressed are those of the author, not the institution.

*
* 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index