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

st: New versions of -sdecode-, -factext- and -listtex- on SSC


From   Roger Newson <[email protected]>
To   [email protected]
Subject   st: New versions of -sdecode-, -factext- and -listtex- on SSC
Date   Thu, 11 Mar 2004 21:03:32 +0000

Fellow Statalisters

Thanks to Kit Baum, there are now new versions of the -sdecode-, -factext- and -listtex- packages available on SSC. In Stata, use the -ssc- command to investigate and install. The packages are described as below on my website.

The new -sdecode- fixes a bug, which caused the -if- and -in- qualifiers not to work as advertised in the online help. They now work.

In the new -factext- package, the -factext- and -factmerg- programs have a new option -fmiss()-, which generates a new binary variable, indicating, in each observation, whether all the factors in the list have missing values for that observation.

The new -listtex- has 2 new options, -appendto()- and -handle()-, which allow -listtex- to add lines of text to the end of an existing text file. I would like to thank Philippe Van Kerm for suggesting these.

Best wishes

Roger

---------------------------------------------------------------------------------
package sdecode from http://www.kcl-phs.org.uk/rogernewson/stata7
---------------------------------------------------------------------------------

TITLE
sdecode: Decode a numeric variable to string, formatting unlabelled values

DESCRIPTION/AUTHOR(S)
sdecode is an extended version of decode. It takes, as input, a numeric
variable, and generates, as output, a string variable, with values
corresponding to value labels of the numeric variable for labelled values,
and (optionally) formatted values of the numeric variable for unlabelled
values. The output string values therefore appear as the numeric input
values appear in output from the tabulate command. The output string
variable may replace the input numeric variable or be generated as a new
variable.

Author: Roger Newson
Distribution-Date: 27february2003
Stata-Version: 7

INSTALLATION FILES (click here to install)
sdecode.ado
sdecode.hlp
---------------------------------------------------------------------------------
(click here to return to the previous screen)

-------------------------------------------------------------------------------------
package factext from http://www.kcl-phs.org.uk/rogernewson/stata7
-------------------------------------------------------------------------------------

TITLE
factext: Extract factor values from a label variable created by parmest

DESCRIPTION/AUTHOR(S)
The factext package contains three programs, factext, factmerg and factref.
factext is used to extract factors (categorical variables) from a
label variable in an output data set created by the parmest package.
factmerg inputs a list of factors and outputs up to 3 string variables,
containing, in each observation, the name, variable label and value of the
first factor in the list with a nonmissing value in that observation.
factref is used to add observations with reference levels for these
factors, so that the user can include these in plots and/or tables.
The parmest package creates a data set with 1 obs per estimated parameter
and data on the parameter estimates, confidence limits, P-values, and
(optionally) also a variable named label, containing the variable label for
the X-variable corresponding to the parameter. If the X-variable is a dummy
variable created by xi, tabulate or John Hendrickx's desmat package, then the
value of label will be of the form "varname==value", where varname is a
variable name and value is a numeric or string value. factext uses this
information to create new factors (categorical variables) with the specified
varnames and values. These new variables can then be used to produce tables
and/or plots. factext can be used together with the descsave package, also
downloadable from SSC or from this website.

Author: Roger Newson
Distribution-Date: 27february2004
Stata-Version: 7

INSTALLATION FILES (click here to install)
factext.ado
factext.hlp
factref.ado
factref.hlp
factmerg.ado
factmerg.hlp
-------------------------------------------------------------------------------------
(click here to return to the previous screen)


----------------------------------------------------------------------------------------
package listtex from http://www.kcl-phs.org.uk/rogernewson/stata8
----------------------------------------------------------------------------------------

TITLE
listtex: List variables as rows of a TeX, HTML or word processor table

DESCRIPTION/AUTHOR(S)
listtex outputs a list of variables to the Stata log or to a file as TeX,
HTML or word processor table rows, which can then be inserted into a TeX,
HTML or word processor table by cutting and pasting and/or file linking
and/or embedding (eg using the TeX \input command). listtex produces the
table rows, but may also produce a set of header lines before the table
rows and/or footer lines after the table rows, containing preambles and/or
table definitions and/or table headers and/or table footers, as specified
by the user.

Author: Roger Newson
Distribution-Date: 03March2004
Stata-Version: 8

INSTALLATION FILES (click here to install)
listtex.ado
listtex.hlp
----------------------------------------------------------------------------------------
(click here to return to the previous screen)


--
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.

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




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