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

st: swaic for model selection with AIC


From   "Paul Silcocks" <Paul.Silcocks@nottingham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: swaic for model selection with AIC
Date   Thu, 23 Sep 2004 17:10:27 +0100

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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index