Displaying 1 result from an estimated 1 matches for "38254".
Did you mean:
8254
2010 Dec 29
5
linear regression for grouped data
...at, the length of the ID vector is around 20000 and therefore linear
regression must be done automatically for each distinct value of ID.
ID x y
76 36476 15.8 76 36493 66.9 76 36579 65.6 111 35465 10.3 111 35756 4.8
121 38183 16 121 38184 15 121 38254 9.6 121 38255 7 168 37727 21.9 168
37739 29.7 168 37746 97.4
I was wondering whether there is an easy way to group data based on the
values of ID in R so that linear regression can be done easily for each
group determined by each value of ID. Or, is the only way to construct
loops with 'f...