Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: New versions of -addinby- and -rtfutil- on SSC

From   Roger Newson <>
To   "" <>
Subject   st: New versions of -addinby- and -rtfutil- on SSC
Date   Wed, 14 Apr 2010 11:36:12 +0100

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

The -addinby- and -rtfutil- packages are described as below on my website. The new version of -addinby- fixes a bug, which appeared accidentally during the upgrade to Stata Version 11 from Stata Version 10, and which caused -addinby- to fail if the user specified a -varlist- with wildcards for the -keep()- option. The new version of -rtfutil- still has the same Stata Version 11 ado-files, but the on-line help has been updated to correct a few SMCL errors, and to add a new .sthlp file for each of the 6 modules of the -rtfutil- package (-rtfopen-, -rtflink-, -rtfhyper-, -rtfcumlist-, -rtfrstyle- and -rtfclose-), pointing to the main on-line help file -rtfutil.sthlp-. The user can therefore type

help rtfopen

and Stata will respond with the on-line help for the whole -rtfutil- package.

Users of Stata Version 10 can still download the Stata Version 10 versions of the -addinby- and -rtfutil- packages from my website by typing

net from "";

and selecting the Stata Version 10 package required.

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 addinby from

      addinby: Add in data from a disk dataset using a foreign key

      addinby is a "cleaner" alternative version of merge m:1, designed to
      reduce the lines of code in Stata do-files.  It adds variables
      and/or values to existing observations in the dataset currently in
      memory (the master dataset) from a Stata-format dataset stored in
      the file filename (the using dataset), using a foreign key of
      variables specified by the keyvarlist to identify observations in
      the using dataset.  These foreign key variables must identify
      observations in the using dataset uniquely.  Unlike merge m:1,
      addinby always preserves the observations in the master dataset in
      their original sorting order, and never adds any additional
      observations, and only generates a matching information variable if
      requested to do so.  However, addinby may optionally check that
      there are no unmatched observations in the master dataset, and/or
      check that there are no missing values in the foreign key variables
      in the master dataset.

      Author: Roger Newson
      Distribution-Date: 12april2010
      Stata-Version: 11

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

package rtfutil from

      rtfutil: Utilities for writing Rich Text Format (RTF) files

      The rtfutil package is a suite of file handling utilities for
      producing Rich Text Format (RTF) files in Stata, possibly
      containing plots and tables.  These RTF files can then be
      opened by Microsoft Word, and possibly by alternative free
      word processors.  The plots can be included by inserting, as
      linked objects, graphics files that might be produced by the
      graph export command in Stata.  The tables can be included by
      using the listtab command, downloadable from SSC, with the
      handle() option.

      Author: Roger Newson
      Distribution-Date: 13april2010
      Stata-Version: 11

INSTALLATION FILES                                  (click here to install)
(click here to return to the previous screen)
*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index