Re: [R] Problem with ldply

2010-05-17 Thread cfriedl
Thanks for teaching me something new. :) -- View this message in context: http://r.789695.n4.nabble.com/Problem-with-ldply-tp2219094p2220473.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://sta

Re: [R] Problem with ldply

2010-05-17 Thread Ista Zahn
The probem is that in the case of model 2 the standard error terms reduce to a vector of length one. Since subsetting with '[' drops unneeded dimensions by default, this vector loses it's name. The solution is to add 'drop = FALSE' to your subset call, like this ldply(fits, function(x) as.data.fra

[R] Problem with ldply

2010-05-17 Thread cfriedl
I've examining a number of linear regression models on a large dataset following the basic ideas presented here http://www.r-bloggers.com/r-calculating-all-possible-linear-regression-models-for-a-given-set-of-predictors/ Calculating all possible linear regressions . I run into a problem with ldpl