Skip to main content
1 of 3

comparing different models with AIC

Is it formally correct to compare two separate models with different independent variables?

For instance in R a pseudo code would be something like:

AIC( lm( y ~ X ) )

vs.

AIC( lm( y ~ W ) )

(X and W cannot feature in the same model as for instance lm( y ~ X*W ) )