Skip to content

Re gression for loop test HELP! URGENT!

1 message · Rbeginner

#
Thanks for the suggestion, but I think I might not have made myself very
clear. I actually have about 2000 sets of M, D, O, and S, so it's probably
not efficient to make each a separate set and then index. I've put
everything into a data frame, so I would like to test how well the
regression fit for each group, which consists of 5 sets of M, D, O, and S.
Since I'll need to test it for about 400 groups, I thought a for loop might
be necessary. 
Any suggestions? I'm just not especially sure how to do the for loop.
Daniel Malter wrote: