some R code to analyze the history, plot the error rate along with how much history you want to predict and how many months of history you want to use