I've been trying for a while on R and I can't seem to extract the p value(value for "Pr(>f))" for a levene test. The usual approach for a statistical test on R is to end the test command with a $p.value at the end. However this does not seem to work for the Levene test as show:
> leveneTest(all.vec,factors)
Levene's Test for Homogeneity of Variance (center = median)
Df F value Pr(>F)
group 3 8.9261 6.982e-06 ***
2607
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
> leveneTest(all.vec,factors)$p.value
NULL
Also, in a similar way for the jarque bera test I can't extract the p.value in the same way
> jarque.bera.test(lg.day.ret.vec)
Jarque Bera Test
data: lg.day.ret.vec
X-squared = 63087.83, df = 2, p-value < 2.2e-16
> jarque.bera.test(lg.day.ret.vec)$p.value
X-squared
0
Thanks for the help