Optimal error predictors for economic models