Re: [R] Sorting data for multiple regressions

2007-08-06 Thread Petr PIKAL
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

[R] Sorting data for multiple regressions

2007-08-03 Thread Paul Young
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

Re: [R] Sorting data for multiple regressions

2007-08-03 Thread Prof Brian Ripley
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