Extracting statiscal values from a list with multiple lists of results of statistical test

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


Extracting statiscal values from a list with multiple lists of results of statistical test



I did a Ljung-Box Test for independence in r with 36 lags and stored the results in a list.


for (lag in c(1:36)){
box.test.list[[lag]] <- (Box.test(btcr, type = "Ljung", lag))
}



I want to extract the p-values as well as the test statistic (X-squared) and print them out to look something like:



X-squared = 100, p-value = 0.0001



I also want to pull it out p-value indivually but rather than just spit out numbers, I want something like:



[1] p-value = 0.001



[2] p-value = 0.0001



and so on. Can this be done?









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Makefile test if variable is not empty

Will Oldham

'Series' object is not callable Error / Statsmodels illegal variable name