Skip to content
Prev 324593 / 398503 Next

metafor mixed-effect models: testing different predictor combinations for lowest AIC

At 22:12 01/06/2013, emhanlon wrote:
You could use the facility that mods can be a matrix and use combn to 
generate all the possible combinations of 9 taken 1, 2, 3 at a time. 
Each time you call ram.uni just save whatever you want to use as your 
criterion.

I am not sure how good an idea that is and I would advise looking at 
all the solutions near (for some meaning of near) the apparently best 
one. You might be surprised how close they are which rather casts 
doubt on the wisdom of selecting variables.
Michael Dewey
info at aghmed.fsnet.co.uk
http://www.aghmed.fsnet.co.uk/home.html