I have a dataset where I\'m trying to loop over a factor variable (location) and building a separate model for each level of that factor. Depending on the
location