Thanks to Kit Baum, there is now a new package -pcontract- available for
download on SSC. In Stata, type -ssc desc pcontract- to find out more.
-pcontract- is an extended version of -contract- which also generates
percentages and, optionally, cumulative frequencies and percentages. It is
described as below on my website.
Best wishes
Roger
-------------------------------------------------------------------------------------------------------------
package pcontract from http://www.kcl-phs.org.uk/rogernewson/stata8
-------------------------------------------------------------------------------------------------------------
TITLE
pcontract: Make a data set of frequencies and percentages
DESCRIPTION/AUTHOR(S)
pcontract is an extended version of contract. It replaces the dataset in
memory with a new dataset consisting of all combinations of values
of a list
of variables that exist in the existing data set and new variables
containing
the frequency and percentage of each combination, and, optionally, the
cumulative frequency and percentage of each combination.
Author: Roger Newson
Distribution-Date: 31july2003
Stata-Version: 8
INSTALLATION FILES (click here to install)
pcontract.ado
pcontract.hlp
-------------------------------------------------------------------------------------------------------------
--
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.