[R] Generating all possible models from full model

2010-05-19 Thread Tim Clark
Is there a function that will allow me to run all model iterations if I specify a full model? I am using information criteria to choose between possible candidate models. I have been writing out all possible model combinations by hand, and I am always worried that I am missing models or have

Re: [R] Generating all possible models from full model

2010-05-19 Thread Tal Galili
Do you mean only all of the FIRST order models (that is, without interactions) ? Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |

Re: [R] Generating all possible models from full model

2010-05-19 Thread Frank E Harrell Jr
On 05/18/2010 11:38 PM, Tim Clark wrote: Is there a function that will allow me to run all model iterations if I specify a full model? I am using information criteria to choose between possible candidate models. I have been writing out all possible model combinations by hand, and I am

Re: [R] Generating all possible models from full model

2010-05-19 Thread Tal Galili
possible models from full model To: Tim Clark mudiver1...@yahoo.com Cc: r-help@r-project.org Date: Tuesday, May 18, 2010, 9:40 PM Do you mean only all of the FIRST order models (that is, without interactions) ? Contact Details

Re: [R] Generating all possible models from full model

2010-05-19 Thread Ben Bolker
Try the MuMIn package from r-forge. Ben Bolker __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal,

Re: [R] Generating all possible models from full model

2010-05-19 Thread Ben Bolker
Tal Galili tal.galili at gmail.com writes: On Wed, May 19, 2010 at 7:38 AM, Tim Clark mudiver1200 at yahoo.com wrote: Is there a function that will allow me to run all model iterations if I specify a full model? m1234567-glm.convert(glm.nb(mantas~site*year+cosmonth+sinmonth+

Re: [R] Generating all possible models from full model

2010-05-19 Thread Tal Galili
My apologies for rushing to write 7! , that one was not thought out at all. Tal Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |

Re: [R] Generating all possible models from full model

2010-05-19 Thread Ben Bolker
Frank E Harrell Jr f.harrell at Vanderbilt.Edu writes: Please read the large number of notes in the e-mail archive about the invalidity of such modeling procedures. Frank I'm curious: do you have an objection to multi-model averaging a la Burnham, Anderson, and White (as implemented

Re: [R] Generating all possible models from full model

2010-05-19 Thread Tal Galili
* wrote: From: Tal Galili tal.gal...@gmail.com Subject: Re: [R] Generating all possible models from full model To: Tim Clark mudiver1...@yahoo.com Cc: r-help@r-project.org Date: Wednesday, May 19, 2010, 12:47 AM Hi Tim, So if I understand you correctly, you are talking about 7! models

Re: [R] Generating all possible models from full model

2010-05-19 Thread Xiaogang Su
A couple of years ago, I wrote a function for doing this. It can be found in the following file: http://pegasus.cc.ucf.edu/~xsu/CLASS/STA4164/mt4-2009.doc I also pasted a copy below. Hope you find it useful. -XG # # ALL POSSIBLE REGRESSIONS # #

Re: [R] Generating all possible models from full model

2010-05-19 Thread Frank E Harrell Jr
On 05/19/2010 01:39 PM, Ben Bolker wrote: Frank E Harrell Jrf.harrellat Vanderbilt.Edu writes: Please read the large number of notes in the e-mail archive about the invalidity of such modeling procedures. Frank I'm curious: do you have an objection to multi-model averaging a la

Re: [R] Generating all possible models from full model

2010-05-19 Thread Daniel Malter
Hi, one approach is document below. The function should work with any regression function that follows the syntax of lm (others will need adjustments). Note that you would have to create the interactions terms by hand (which is no big deal if there are just few). Note also that this approach can

Re: [R] Generating all possible models from full model

2010-05-19 Thread Tim Clark
- Original Message From: Xiaogang Su xiaogan...@gmail.com To: Tim Clark mudiver1...@yahoo.com Cc: r-help@r-project.org Sent: Wed, May 19, 2010 9:42:40 AM Subject: Re: [R] Generating all possible models from full model A couple of years ago, I wrote a function for doing this. It can be found