Message-ID: <1123546054.31784.56.camel@ipc143004.lif.icnet.uk>
Date: 2005-08-09T00:07:34Z
From: Adaikalavan Ramasamy
Subject: AIC model selection
In-Reply-To: <BAY108-F298843DDD3853F58952D88B7B80@phx.gbl>
Are you looking for possibly stepAIC from the package MASS ?
Regards, Adai
On Mon, 2005-08-08 at 16:39 -0600, Martin Kardos wrote:
> Hello All;
>
> I need to run a multiple regression analysis and use Akaike's Information
> Criterion for model selection. I understand that this command will give the
> AIC value for specified models:
>
> AIC(object, ..., k = 2)
>
> with "..." meaning any other optional models for which I would like AIC
> values. But, how can I specify (in the place of "...") that I want R to
> perform an model selection prodecure based on Akaike's Information Criterion
> on a set of potential independent variables in a model such as:
>
> model.lm=lm(A~B+C+D+E+F+G)
>
> ?
>
> Thanks a million;
>
> Marty
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>