Re: [R] how to selection model by BIC

2010-08-17 Thread Gavin Simpson
On Tue, 2010-08-17 at 17:12 +0100, Xin__ Li wrote: > Hi All: > the package "MuMIn" can be used to select the model based on AIC or AICc. > The code is as follows: > > data(Cement) > lm1 <- lm(y ~ ., data = Cement) > > dd <- dredge(lm1,rank="AIC") > print(dd) > > If I want to select the model by

Re: [R] how to selection model by BIC

2010-08-17 Thread Ben Bolker
Xin__ Li mail.wbs.ac.uk> writes: > > Hi All: > the package "MuMIn" can be used to select the model based on AIC or AICc. > The code is as follows: > > data(Cement) > lm1 <- lm(y ~ ., data = Cement) > > dd <- dredge(lm1,rank="AIC") > print(dd) > > If I want to select the model by BIC, what cod

[R] how to selection model by BIC

2010-08-17 Thread Xin__ Li
Hi All: the package "MuMIn" can be used to select the model based on AIC or AICc. The code is as follows: data(Cement) lm1 <- lm(y ~ ., data = Cement) dd <- dredge(lm1,rank="AIC") print(dd) If I want to select the model by BIC, what code do I need to use? And when to select the best model based