# [R] leveneTest - output

Tue Oct 1 20:44:01 CEST 2013

```Hello,

Just to add that the value 0.9829 [Pr(>F)] can be checked with

pf(0.0173, df1 = 2, df2 = 7, lower.tail = FALSE)

Em 01-10-2013 19:02, John Fox escreveu:
> Dear Hermann,
>
>> -----Original Message-----
>> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
>> project.org] On Behalf Of Hermann Norpois
>> Sent: Tuesday, October 01, 2013 8:07 AM
>> To: r-help
>> Subject: [R] leveneTest - output
>>
>> Hello,
>>
>> I have a question concerning the output of leveneTest. I don't
>> understand
>> the "7" in my output
>
> That's the denominator df for F.
>
> Best,
>   John
>
>>
>> Levene's Test for Homogeneity of Variance (center = median)
>>        Df F value Pr(>F)
>> group  2  0.0173 0.9829
>>         7        # Where does this number come from?
>>
>> Thanks.
>> Hermann
>>
>>
>>> res
>>     group.ID    qtrait
>> 1         0 6462.3288
>> 2         0  816.7808
>> 3         0 6031.3356
>> 4         0 1013.5274
>> 5         0 1517.2500
>> 6         1 1585.2740
>> 7         1 2481.6781
>> 8         1 8871.5753
>> 9         2 4913.5274
>> 10        2  833.7329
>>> ltest <- leveneTest (qtrait~group.ID, res)
>>> ltest
>> Levene's Test for Homogeneity of Variance (center = median)
>>        Df F value Pr(>F)
>> group  2  0.0173 0.9829
>>         7
>>> dput (res)
>> structure(list(group.ID = structure(c(1L, 1L, 1L, 1L, 1L, 2L,
>> 2L, 2L, 3L, 3L), .Label = c("0", "1", "2"), class = "factor"),
>>      qtrait = c(6462.32876712329, 816.780821917808, 6031.33561643836,
>>      1013.52739726027, 1517.25, 1585.27397260274, 2481.67808219178,
>>      8871.57534246575, 4913.52739726027, 833.732876712329)), .Names =
>> c("group.ID",
>> "qtrait"), row.names = c(NA, -10L), class = "data.frame")
>>
>> 	[[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help