I ran step wise function using step() function to get the model in linear regression.I got model which have five variables and AIC mentioned in the step wise function is 1538.
then i selected that model and created that model and then checked the AIC with AIC(modelname) command.In this case i got different AIC as 2919
so is stepwise AIC and model AIC are different?