Hi
[EMAIL PROTECTED] napsal dne 04.08.2007 07:49:16:
Well, R has a by() function that does what you want, and its help page
contains an example of doing regression by group.
(There are other ways.)
E.g. you can split your data into list
d.s - split(data, data$site)
and then use lapply
So I am trying to perform a robust regression (fastmcd in the robust
package) on a dataset and I want to perform individual regressions based
on the groups within the data. We have over 300 sites and we want to
perform a regression based on the day of week and the hour for every
site. I was
Well, R has a by() function that does what you want, and its help page
contains an example of doing regression by group.
(There are other ways.)
On Fri, 3 Aug 2007, Paul Young wrote:
So I am trying to perform a robust regression (fastmcd in the robust
package) on a dataset and I want to