Bookmark and Share

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


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

st: New version of -chardef- on SSC


From   "Roger B. Newson" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: New version of -chardef- on SSC
Date   Mon, 14 May 2012 21:05:06 +0100

Thanks as always to Kit Baum, a new version of the -chardef- 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 of -chardef-.

The -adoupdate- package is described as below on my website, and sets characteristics for a list of items. In the new version, -chardef- and -charundef- input an extended varlist (or evarlist), which is a list of items which may be variable names or the name -_dta-, implying that we are setting or unsetting characteristics of the dataset currently in memory. For example, the user may type

charundef _dta

and clear all characteristics of the dataset currently in memory. Or the user may type

charundef _dta *

and clear all characteristics of the current dataset and of all variables in the current dataset.

Best wishes

Roger


--
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
UNITED KINGDOM
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Email: [email protected]
Web page: http://www.imperial.ac.uk/nhli/r.newson/
Departmental Web page:
http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/popgenetics/reph/

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

---------------------------------------------------------------------------
package chardef from http://www.imperial.ac.uk/nhli/r.newson/stata11
---------------------------------------------------------------------------

TITLE
      chardef: Assign values to a characteristic of a list of items

DESCRIPTION/AUTHOR(S)
      chardef is a mass-production version of the char define
      command.  It assigns a list of values to a named
      characteristic of a list of items, which can be variables, or
      the current dataset.  If the evarlist is not supplied, then
      chardef assigns the values to the named characteristic for
      all variables in the dataset currently in the memory.  If the
      named characteristic is not supplied, then the values are
      assigned to the characteristic varname, used by the list
      command.  If the list of values is shorter than the evarlist,
      then the list of values is extended on the right with copies
      of the last value.  Optionally, a prefix and/or a suffix may
      be added to the values.  The charundef module resets a list
      of characteristics to empty strings for a list of items.

      Author: Roger Newson
      Distribution-Date: 10may2012
      Stata-Version: 11

INSTALLATION FILES                                  (click here to install)
      chardef.ado
      charundef.ado
      chardef.sthlp
      charundef.sthlp
---------------------------------------------------------------------------
(click here to return to the previous screen)
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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