Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: New versions of -xcontract-, -xcollapse-, -factext-, -factmerg-, -factref- anf -inccat- on SSC


From   "Newson, Roger B" <[email protected]>
To   <[email protected]>
Subject   st: New versions of -xcontract-, -xcollapse-, -factext-, -factmerg-, -factref- anf -inccat- on SSC
Date   Fri, 23 Feb 2007 11:17:37 -0000

Thanks to Kit Baum, there are now new versions of the packages
-xcontract-, -xcollapse-, -factext-, -factmerg-, -factref- and -inccat-
available for download from SSC. In Stata, use the -ssc- command to do
this.

The packages -xcontract-, -xcollapse-, -factext-, -factmerg-, -factref-
and -inccat- are described as below on my website, and also described in
Newson (2006), Newson (2004), Newson (2003) and Newson (2002). The new
versions were written because the old versions of some of these packages
were liable to fail under a minority of Windows operating environments,
which generate -tempfile- names with embedded blanks. (The technical
user can see -[P] macro- for more about tempfile names.) I have
attempted to fix this bug in affected packages, and also taken this
opportunity to update the on-line help in these packages and in their
companion packages.

Best wishes

Roger

References

    Newson, R. 2006. Resultssets, resultsspreadsheets, and resultsplots
in Stata.
        Presented at the 4th German Stata Users' Group Meeting,
Mannheim, 31 March,
        2006.  Also downloadable from Roger Newson's website at
        http://www.imperial.ac.uk/nhli/r.newson.

    Newson, R. 2004. From datasets to resultssets in Stata.  Presented
at the 10th
        United Kingdom Stata Users' Group Meeting, London, 29 June,
2004.  Also
        downloadable from Roger Newson's website at
        http://www.imperial.ac.uk/nhli/r.newson.

    Newson, R. 2003. Confidence intervals and p-values for delivery to
the end user.
        The Stata Journal 3(3): 245-269. Pre-publication draft
downloadable from Roger
        Newson's website at http://www.imperial.ac.uk/nhli/r.newson.

    Newson, R. 2002. Creating plots and tables of estimation results
using parmest and
        friends.  Presented at the 8th UK Stata Users' Group Meeting,
20-21 May, 2002.
        Also downloadable from Roger Newson's website at
        http://www.imperial.ac.uk/nhli/r.newson.


Roger Newson
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] 
www.imperial.ac.uk/nhli/r.newson/

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


------------------------------------------------------------------------
------------------
package xcontract from http://www.imperial.ac.uk/nhli/r.newson/stata8
------------------------------------------------------------------------
------------------

TITLE
      xcontract: Make data set of frequencies and percents on disk or in
memory

DESCRIPTION/AUTHOR(S)
      xcontract is an extended version of contract. It creates a data
set with one
      observation per combination of values of a list of variables in
the existing
      data set and new variables containing the frequency and percent of
each
      combination, and, optionally, the cumulative frequency and percent
of each
      combination. A list of by-variables can be used with xcontract,
and the
      percents will then be calculated within by-groups. The output data
set may
      either be listed to the Stata log, or saved to a disk file, or
written to the
      memory (overwriting any existing data set).
      
      Author: Roger Newson
      Distribution-Date: 22february2007
      Stata-Version: 8

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


------------------------------------------------------------------------
------------------
package xcollapse from http://www.imperial.ac.uk/nhli/r.newson/stata8
------------------------------------------------------------------------
------------------

TITLE
      xcollapse: Make data set of summary statistics on disk or in
memory

DESCRIPTION/AUTHOR(S)
      xcollapse is an extended version of collapse, which creates a data
set with
      one observation per combination of values of a list of variables
in the
      existing data set and new variables containing summary statistics
of other
      variables (eg means) in each combination. xcollapse allows the
user to choose
      the destination of the output data set, which may either be listed
to the
      Stata log, or saved to a disk file, or written to the memory
(overwriting any
      existing data set).
      
      Author: Roger Newson
      Distribution-Date: 22february2007
      Stata-Version: 8

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

------------------------------------------------------------------------
-------------------
package factext from http://www.imperial.ac.uk/nhli/r.newson/stata7
------------------------------------------------------------------------
-------------------

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

DESCRIPTION/AUTHOR(S)
      factext is used to extract factors (categorical variables) from a
      label variable in an output data set created by the parmest
package.
      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: 22february2007
      Stata-Version: 7

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


------------------------------------------------------------------------
-------------------
package factmerg from http://www.imperial.ac.uk/nhli/r.newson/stata7
------------------------------------------------------------------------
-------------------

TITLE
      factmerg: Merge a list of factors to create string variables

DESCRIPTION/AUTHOR(S)
      factmerg inputs a list of factors and outputs up to 3 string
variables,
      containing, in each observation, the name, variable label and
value,
      respectively, of the first factor in the list with a nonmissing
value in
      that observation. These string variables can be used in creating
row labels
      for output tables and/or plots, possibly using the sencode
package. The input
      factors are usually either created in a parmest or parmby output
data set by
      using the factext package, or are in a data set created by
concatenating
      multiple xcontract output data sets using dsconcat. The sencode,
parmest,
      factext, xcontract and dsconcat packages are downloadable from SSC
or from
      this website.
      
      Author: Roger Newson
      Distribution-Date: 22february2007
      Stata-Version: 7

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


------------------------------------------------------------------------
-------------------
package factref from http://www.imperial.ac.uk/nhli/r.newson/stata7
------------------------------------------------------------------------
-------------------

TITLE
      factref: Insert new observations with reference values for factors

DESCRIPTION/AUTHOR(S)
      factref is used with factext, descsave, parmby and parmest.  It
takes, as
      input, a data set created by parmby or parmest, in which
categorical
      variables (factors) have been created by descsave and factext.
These factors
      are variables (numeric or string) representing categorical
variables in the
      fitted model, represented by dummy variables such as those created
by xi.
      factref adds to that data set a set of additional observations
with reference
      values for these factors, copied from the omit characteristic for
each
      factor. For each factor, factref creates one reference observation
if there
      are non-missing values for the factor and there is no by-variable
list, or
      one reference observation for each by-group where there are
non-missing
      values of the factor if there is a by-variable list.  After the
reference
      observations have been added, the user may create a plot or table
of
      confidence intervals for factor effects.
      
      Author: Roger Newson
      Distribution-Date: 22february2007
      Stata-Version: 7

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

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