[R] AIC for regression models (was: (no subject))

Roger Peng rpeng at stat.ucla.edu
Sat Jan 25 23:00:41 CET 2003


Yes, you can use the `AIC' function in R:

> set.seed(100)
> x1 <- rnorm(100)
> x2 <- rnorm(100)
> y <- x1 + x2 + rnorm(100)
> AIC(lm(y ~ x1 + x2))
[1] 286.7287

-roger
_______________________________
UCLA Department of Statistics
rpeng at stat.ucla.edu
http://www.stat.ucla.edu/~rpeng

On Fri, 24 Jan 2003, Simon CHAMAILLE wrote:

> Dear All
A> I just want to know if it is easily possible to compute AICc
calculation for multiple regression models under R ?
> Thanks a lot,
> simon chamaillé
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> http://www.stat.math.ethz.ch/mailman/listinfo/r-help
>




More information about the R-help mailing list