Statalist


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

st: New prodvars and stcmd packages on SSC


From   "Newson, Roger B" <[email protected]>
To   <[email protected]>
Subject   st: New prodvars and stcmd packages on SSC
Date   Fri, 8 Aug 2008 18:02:48 +0100

Thanks to Kit Baum, a new package prodvars, and a new version of the
stcmd package, are now available for download from SC. In Stata, use the
ssc command to do this. The two packages are described as below on my
website.

The prodvars package inputs 2 variable lists (the left and right
varlists), and produces as output a set of new product variables, one
per left-right variable pair, with values equal to the products of the
variables and variable names (and optionally labels) derived by
combining the names (and optionally labels) of the input variables. It
was designed to produce variables for the design matrix of a
multi-intercept regression model, typically using input variables
generated by xi or tabulate.

The stcmd command calls Statr/Transfer from within Stata (if the user
has installed Stat/Transfer). The new version is updated to Stata
Version 10, and now outputs a brief commentary of what it does,
including the Stat/Transfer command generated, to the Stata log or
results window. This is imtended to make life easier if (for any reason)
Stat/Transfer is not working. The old Stata 9 and Stata 6 versions of
stcmd are still available from my website, and can be downloaded by
typing in Stata

net from http://www.imperial.ac.uk/nhli/r.newson/

and selecting the Stata version required.

I would like to thank Sergiy Radyakin, Austin Nichols and Paul Hewett
for their feedback and advice about stcmd. Unfortunately, I still
haven't worked out how to check that a string is a program path, in a
way that I can be confident that it will be portable between operating
environments. (Note that a program path is not the same thing as a
folder, but is something more complicated, typically a program filename,
with or without a .exe extension and/or a folder, at least under
Windows. And, as far as I know, you cannot access a DOC ERRORLEVEL from
Stata after executing shell.) However, stcmd gives more feedback than it
previously did.

Best wishes

Roger


Roger B 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] 
Web page: www.imperial.ac.uk/nhli/r.newson/
Departmental Web page:
http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/pop
genetics/reph/

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

------------------------------------------------------------------------
--------------------
package prodvars from http://www.imperial.ac.uk/nhli/r.newson/stata10
------------------------------------------------------------------------
--------------------

TITLE
      prodvars: Create product variables for two lists of input
variables

DESCRIPTION/AUTHOR(S)
      prodvars inputs 2 variable lists, known as the left variable list
and
      the right variable list. It produces as output a list of generated
      variables, one for each pair of variables from the left and right
      variable lists, each with a variable names derived from the names
of
      the pair of input variables, and values equal to the products of
the
      values of the two input variables. Optionally, the generated
      variables may also have variable labels derived from the variable
      labels, or variable names, of the input variables. prodvars is
useful
      for calculating variables for the design matrix of a
      multiple-intercept model.
      
      Author: Roger Newson
      Date: 07 August 2008
      Stata version: 10

INSTALLATION FILES                                  (click here to
install)
      prodvars.ado
      prodvars.sthlp
------------------------------------------------------------------------
--------------------
(click here to return to the previous screen)

------------------------------------------------------------------------
--------------------
package stcmd from http://www.imperial.ac.uk/nhli/r.newson/stata10
------------------------------------------------------------------------
--------------------

TITLE
      stcmd: Run the Stat/Transfer st command from inside Stata

DESCRIPTION/AUTHOR(S)
      The program stcmd runs the Stat/Transfer st command from inside
Stata, if
      Stat/Transfer is installed on the user's system. Stat/Transfer
converts
      data sets from one format to another (eg Stata to/from R). It is
      available from Stata Corporation and manufactured by Circle
Systems, and
      further information can be found at http://www.stattransfer.com/.
The
      program inputst converts an existing non-Stata input file into a
Stata
      dataset in the memory, overwriting any existing data. The program
outputst
      converts the Stata dataset in the memory to a newly-created
non-Stata
      output file. The programs inputst and outputst require stcmd, and
therefore
      should not be downloaded alone. If the Stat/Transfer directory on
the
      user's system is not on the user's default path, then the user
must set
      the global macro StatTransfer_path to contain the path for the
Stat/Transfer
      st command, possibly in the profile.do file (see on-line help for
details).
      
      Author: Roger Newson
      Distribution-Date: 08august2008
      Stata-Version: 10

INSTALLATION FILES                                  (click here to
install)
      stcmd.ado
      inputst.ado
      outputst.ado
      stcmd.sthlp
      inputst.sthlp
      outputst.sthlp
------------------------------------------------------------------------
--------------------
(click here to return to the previous screen)

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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