made model predictions in ifelse statement within a for loop to take advantage of specific site and year effects when available