Thanks to Kit Baum, a new version of the -stcmd- package is now
available for download from SSC. In Stata, use the -ssc- command to do
this.
The -stcmd- package is described as below on my website, and runs
Stat/Transfer from within Stata to input and output datasets from other
formats into and out of Stata. The new version is updated to Stata 9,
and has a Stata 9 online help file. However, users of Stata 6, 7 and 8
can still download the old Stata 6 version from my website by typing, in
Stata,
net from "http://www.imperial.ac.uk/nhli/r.newson/stata6/"
The new version is also improved in that, if the path for Stat/Transfer
on the user's system is not simply "st.exe", then the user is encouraged
to reset it using a global macro StatTransfer_path, which the user can
set every time Stata is started by inserting a line into the profile
do-file profile.do. This is in contrast to the old Stata 6 version, for
which users were encouraged to edit the ado-file itself if the path for
Stat/Transfer on the user's system was not simply "st.exe".
The -stcmd- package is intended to work on all operating environments
available to Stata. However, I have only tested in under my Microsoft
Windows/XP system. If any users have any problems using -stcmd- on their
systems, then PLEASE LET ME KNOW.
Best wishes
Roger
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 stcmd from http://www.imperial.ac.uk/nhli/r.newson/stata9
------------------------------------------------------------------------
---------------
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: 06june2007
Stata-Version: 9
INSTALLATION FILES (click here to
install)
stcmd.ado
stcmd.hlp
inputst.ado
inputst.hlp
outputst.ado
outputst.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/