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.