[R] Combining several regressions

Hadley Wickham h.wickham at auckland.ac.nz
Wed Jan 21 01:43:29 CET 2004


>b <- by(data.frame, conditioning.variable, 
>        function(subset) { loess(y ~ x, subset) })
>
>unsplit(lapply(b,fitted), conditioning.variable)
>
>  
>
That does the trick. Thanks!
Hadley




More information about the R-help mailing list