4

Does anyone know what package to use for AICc (Akaike Information Criterion corrected) in r? I am currently using the package 'MASS' and function 'step' to find the best AIC, but I would like to find the best AICc because my sample size is small.

Thank you in advance.

rcurley
  • 51
  • 1
  • 3

2 Answers2

2

Package MuMIn wil calculate it with the function AICc.

https://www.rdocumentation.org/packages/MuMIn/versions/1.43.15/topics/AICc

https://cran.r-project.org/web/packages/MuMIn/index.html

Scransom
  • 3,175
  • 3
  • 31
  • 51
  • Unfortunately, MuMIn has a hard-coded limit of 30 variables (https://stackoverflow.com/questions/59114813/error-in-mumin-pdredge-when-using-more-than-30-predictor-variables). Also, it doesn't let you do bi-directional stepwise selection-- the starting model is also the maximum model. – bokov Oct 01 '21 at 22:30
-1

It is build into the R core stats package. No extra packages need to be installed.

https://www.rdocumentation.org/packages/stats/versions/3.6.2/topics/AIC

Gerhard
  • 6,850
  • 8
  • 51
  • 81