I have a class project where in a part of it I have to find AIC and BIC. I am using a US.GDP data from the FRED and i cant seem to figure out what im doing wrong. Im very new to r so any tips are appreciated.enter image description here when I put this code in it comes up with the error
AIC(fit) Error in logLik.lm(object) : 'logLik.lm' does not support multiple responses
I am not sure what I need to do to allow me to find any sort of fit because I get different errors for all these codes
abline(fit) AIC(fit) BIC(fit)
I have tried finding how to maybe compare regressions but I really cant figure out how to find it since my only variables are the gdp from each quarter and then the date. Date on the x and gdp on the y. I am super stuck on this one part because i cant see what im doing wrong except maybe it wont work on a linear regression :/