Say I have a very simple model
library(foreign)
smoke <- read.dta("http://fmwww.bc.edu/ec-p/data/wooldridge/smoke.dta")
smoking.reg <- lm(cigs ~ educ, data=smoke)
AIC(smoking.reg)
BIC(smoking.reg)
In R I get the following results:
> AIC(smoking.reg)
[1] 6520.26
> BIC(smoking.reg)
[1] 6534.34
Running the same regression however in Stata
use http://fmwww.bc.edu/ec-p/data/wooldridge/smoke.dta
reg cigs educ
returns the following result
estat ic
How can I get R to return exactly the same values as does Stata for AIC and BIC?
