Skip to content

Automatic saving of many regression's output

1 message · arun

#
Hi,
No problem,

You could try:
library(tseries)

res6 <- do.call(rbind,lapply(lst1[sapply(lst1,function(x) !(all(rowSums(is.na(x))>0)))],function(x) {resid <- residuals(lm(rate~.,data=x)); unlist(jarque.bera.test(resid)[1:3])}) )


 A.K.
On Wednesday, November 27, 2013 7:47 PM, Tomasz Schabek <schabek.tomasz at gmail.com> wrote:
Great!

Thank you for help one more time!
yes, you are right - jarque.bera.test() should be applied to a vector, so the deal is: residuals from each of those 123 regressions captured by e.g:
"resid <-residuals(model)"? and "jarque.bera.test(resid)" are tested in jarque.bera.test(). Could you manage it?

You are really helpful and kind person!




Kind regards,
Atenciosamente,
Pozdrawiam,

T. S.
On 28 November 2013 01:33, arun <smartpink111 at yahoo.com> wrote: