Displaying 1 result from an estimated 1 matches for "rsqs".
Did you mean:
reqs
2006 Oct 25
3
simplification of code using stamp?
...es linear
regressions and returns the r-squares, and the coefficients.
It runs slow, as it is doing the regressions for each - is it possible
to get the values in a dataframe which looks as follow:
expert | xx | seeds | r.squared | slope | intercept
Thanks in advance,
Rainer
library(reshape)
rsqs <- as.data.frame(
stamp(
tc.long,
expert * xx * seeds ~ .,
function(df) try( summary( lm(distance ~
generation, data=df))$r.squared, silent=TRUE )
)...