[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
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
School of Community Health Sciences
University of Nottingham Medical School
tel +44 (0) 115 9709765
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: