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: New version of -xcontract- on SSC

From   Roger Newson <>
To   "" <>
Subject   st: New version of -xcontract- on SSC
Date   Mon, 10 May 2010 11:26:42 +0100

Thanks to Kit Baum, a new version of the -xcontract- package is now available for download from SSC. In Stata, use the -ssc- command to do this, or -adoupdate- if you already have an old version.

The -xcontract- package is described as below on my website. It has been updated to Stata Version 10, with a .sthlp online help file, for compatibility with some firewalls which have a problem with the old Stata 8 .hlp extension. Users of Stata Versions 8 or 9 can still download the old Stata 8 version of -xcontract- from my website by typing, in Stata,

net from

and downloading the Stata 8 version of -xcontract-.

Best wishes


Roger B Newson BSc MSc DPhil
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton Campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Web page:
Departmental Web page:

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

package xcontract from

xcontract: Make data set of frequencies and percents on disk or in memory

xcontract is an extended version of contract. It creates a data set with one observation per combination of values of a list of variables in the existing data set and new variables containing the frequency and percent of each combination, and, optionally, the cumulative frequency and percent of each combination. A list of by-variables can be used with xcontract, and the percents will then be calculated within by-groups. The output data set may either be listed to the Stata log, or saved to a disk file, or written to the
      memory (overwriting any existing data set).

      Author: Roger Newson
      Distribution-Date: 06may2010
      Stata-Version: 10

INSTALLATION FILES                                  (click here to install)
(click here to return to the previous screen)

*   For searches and help try:

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