I am trying to perform a linear regression on some weather data, but I can't seem to figure out how to perform the operation. What I have right now is this:
temperature = WeatherData["Chicago", "Temperature", {{1990},{2010},"Month"}]
model = LinearModelFit[temperature,x,x]
Any ideas on what I am doing wrong?
WeatherData
has changed from version 9 to version 10 and both are not valid input forLinearModelFit
. Belisarius answer shows how to solve the problem for version 9, but you'd need a different approach for version 10. $\endgroup$