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

st: New version of -sencode- downloadable from SSC

From   Roger Newson <>
Subject   st: New version of -sencode- downloadable from SSC
Date   Mon, 09 Jun 2003 18:33:51 +0100

Hello All

Thanks to Kit Baum, there is now a new version of the -sencode- package downloadable from SSC. Type -ssc desc sencode- to find out more.

The -sencode- package is a sequential non-alphanumeric version of -encode-, and encodes the values of a string variable to a numeric variable in a user-specified order, which, in default, is the sequential order of appearance of the string value in the data set. The new version fixes a bug, which caused the old version of -sencode- to fail if the -manyto1- option was specified and the string variable to be encoded contained a non-missing string value containing only spaces (eg " "). The new version of -sencode- encodes such a non-missing string of spaces to a non-missing numeric code, although the empty string value "" is still encoded to a numeric missing value. (This is consistent with the policy of -encode-, and indeed with the policy of the old version of -sencode- when the -manyto1- option was not specified.)

Best wishes


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

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

* For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index