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

st: New version of -factext- on SSC


From   Roger Newson <[email protected]>
To   [email protected]
Subject   st: New version of -factext- on SSC
Date   Tue, 06 May 2003 10:40:37 +0100

Dear All

Thanks to Kit Baum, there is now a new version of the -factext- package available for download from SSC. In Stata, type -ssc desc factext- to find out more.

-factext- is intended for use after the -parmest- package (downloadable from SSC), which creates data sets with one observation per parameter of a fitted model. -factext- is used when the fitted model contains factors (categorical variables), in which case some of the parameters correspond to dummy variables in the original data set, indicating individual values of these factors. These dummy variables are usually created by -xi-, by -tabulate-, or by John Hendrickx's -desmat- package (also downloadable from SSC). -factext- is used to create new factors with the same names in the new data set created by -parmest-. These new factors can be used to make confidence interval plots and/or tables. Each new factor is assigned the appropriate value in observations belonging to parameters belonging to the factor, and missing values in other observations. The values of these factors are usually extracted from the -label- variable in the data set created by -parmby- or -parmest-. If the model contains categorical factors, then the label variable will have values of the form

"factor_name==value"

in observations belonging to parameters belonging to these factors.

The -factext- package also contains the -factref- program for adding observations to the data set containing reference levels for the factors created by -factext-. The new version also contains the -factmerg- program, which merges a list of factors to create string variables containing the name, variable label and value of the first factor in the list with a non-missing value. These string variables can be used to create row labels for tables and/or plots.

Best wishes

Roger

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

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