I have a large number of OLS regressions to run. I’m hoping to do this using the GLM package but I need to find a way to iterate over regressions easily. I’m hoping to do something like the following:
for i=1:n reg_temp = glm(@formula(Z$i ~ X$i + Y$i), data, Normal(), IdentityLink()) end
where $i would operate like with strings. Is there anyway to do this easily? Maybe using a dictionary? Many thanks!