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

st: RE: swaic for model selection with AIC


From   "Steichen, Thomas J." <SteichT@rjrt.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: swaic for model selection with AIC
Date   Thu, 23 Sep 2004 12:59:53 -0400

I sent modified files to Paul directly...

Thomas J. Steichen
steicht@rjrt.com
---------------------------------------------------------------------------------------
   "If your result needs a statistician then you should design a better experiment."
     - Ernest Lord Rutherford: physicist, chemist & mathematician extraordinaire
---------------------------------------------------------------------------------------



-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Paul Silcocks
Sent: Thursday, September 23, 2004 12:10 PM
To: statalist@hsphsun2.harvard.edu
Subject: st: swaic for model selection with AIC


I'm desperately seeking some help from an experienced Stata programmer!  I am using the Stata insert swaic for an automatic model
selection (findit swaic will direct you to the program and help file).

However for my purposes I need to extract the names of the variables chosen for the final best-fitting model (as a string, say).
Unfortunately the swaic procedure doesn't seem to save the results and the variables used in the final model seem to be buried in
various local macros and I've not been successful at modifying the ado-file, even though it looks as if a single line at the right
place would do the job.  Ideally I'd extract the minimum AIC value as well, but I can live with running the "best" model one extra
time to calculate the AIC.
 
Can anybody help me please? I've tried contacting the author, Dr Zhiqiang Wang at Australia's Menzies University, but without
success (he may not even be there now) and I've run out of ideas.



Paul Silcocks BM BCh, MSc, FRCPath, FFPH, CStat
Clinical Senior Lecturer
Trent Institute for Health Services Research
Room B39
School of Community Health Sciences
University of Nottingham Medical School
Nottingham
NG7 2UH

tel +44 (0) 115 9709765
e-mail paul.silcocks@nottingham.ac.uk

This message has been scanned but we cannot guarantee that it and any attachments are free from viruses or other damaging content:
you are advised to perform your own checks.  Email communications with the University of Nottingham may be monitored as permitted by
UK legislation.


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

-----------------------------------------
CONFIDENTIALITY NOTE:  This e-mail message, including any  attachment(s),
contains information that may be confidential,  protected by the attorney-
client or other legal privileges, and/or  proprietary non-public
information.  If you are not an intended  recipient of this message or an
authorized assistant to an intended  recipient, please notify the sender by
replying to this message and  then delete it from your system.  Use,
dissemination, distribution,  or reproduction of this message and/or any of
its attachments (if  any) by unintended recipients is not authorized and
may be unlawful.


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index