Szűcs Ákos wrote: > > Hi! > I got a loop where i print out the results of Jarque Bera tests, but I > have to put, the p-values in a vector. Can you help me how to do it in > an effective way and not just typing in the results to a vector? Thanks > a lot, here is the code: > for(i in 1:60){ > print(jarque.bera.test(loghozamok[((20*(i-1))+1):(20*(i+ > > >
The power is out here so I have no access to R. I can tell you what I would have done. Go to the help page for that function and look at the Value section. Generally functions return a list and you need to find the name of the item that has the p-value. It's possible that there will be a print method for the object returned and you might need to look at that page. As a last resort you would look at the object returned with str(). -- David. -- View this message in context: http://r.789695.n4.nabble.com/jarquebera-test-results-tp3953541p3953795.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.