title: Levene test extracting p value?
body: <p>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:</p>
  
  <pre><code>&gt; leveneTest(all.vec,factors)
  Levene's Test for Homogeneity of Variance (center = median)
          Df F value    Pr(&gt;F)    
  group    3  8.9261 6.982e-06 ***
        2607                      
  ---
  Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
  &gt; leveneTest(all.vec,factors)$p.value
  NULL
  </code></pre>
  
  <p>Also, in a similar way for the jarque bera test I can't extract the p.value in the same way</p>
  
  <pre><code>&gt; jarque.bera.test(lg.day.ret.vec)
  
      Jarque Bera Test
  
  data:  lg.day.ret.vec
  X-squared = 63087.83, df = 2, p-value &lt; 2.2e-16
  
  &gt; jarque.bera.test(lg.day.ret.vec)$p.value
  X-squared 
          0 
  </code></pre>
  
  <p>Thanks for the help</p>