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

Re: st: Presenting a country-period table


From   Roger Newson <[email protected]>
To   [email protected]
Subject   Re: st: Presenting a country-period table
Date   Thu, 01 Apr 2004 20:20:51 +0100

At 21:10 01/04/04 +0200, Jan Pettersson wrote:
Dear all.
Maybe this is a "RTFM"-question. Sorry in that case.
Anyway, I have a list of the following form:

country periodstart periodend
Argentina 1986 1989
Argentina 1990 1993
Argentina 1994 1997
Argentina 1998 2001
Bolivia 1986 1989
Bolivia 1990 1993
Bolivia 1994 1997
Bolivia 1998 2001
Botswana 1974 1977
Botswana 1978 1981
Botswana 1982 1985
etc.

that I would like to present in a table looking like:

Argentina (1986 - 1989, 1990 - 1993, 1994 - 1997, 1998 - 2001);
Bolivia (1986 - 1989, 1990 - 1993, 1994 - 1997, 1998 - 2001);
Botswana (1974 - 1977, 1978 - 1981, 1982 - 1985);
etc.
The FM to read is probably -[R] reshape- or -help reshape-.

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: [email protected]
Website: http://www.kcl-phs.org.uk/rogernewson

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