[R] AIC model selection

From: Martin Kardos <marteye29_at_hotmail.com>
Date: Tue 09 Aug 2005 - 08:39:58 EST


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@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 Received on Tue Aug 09 08:44:58 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:39:45 EST