Description Usage Arguments Details Value Author(s) See Also Examples
Performs a Cochran's test of the null hypothesis that the largest variance in several sampled variances are the same.
1 | C.test(object)
|
object |
An object of class lm, containing the specified design. |
The test statistic is a ratio that relates the largest variance to the sum of the sampled variances.
A list of class htest containing the following components:
statistic |
Cochran's C test statistic |
p-value |
The p-value of the test |
alternative |
A character string describing the alternative hypothesis |
method |
The character string Cochran test of homogeneity of variances |
data.name |
A character string giving the name of the lm object |
estimate |
Sample estimates of variances |
Leonardo Sandrini-Neto (leonardosandrini@gmail.com)
1 2 3 4 5 6 |
Loading required package: matrixStats
Loading required package: R.methodsS3
R.methodsS3 v1.7.1 (2016-02-15) successfully loaded. See ?R.methodsS3 for help.
Cochran test of homogeneity of variances
data: model
C = 0.30762, n = 2, k = 12, p-value = 0.5899
alternative hypothesis: Group cage1.m2 has outlying variance
sample estimates:
cage1.m1 cage1.m2 cage1.m3 cage1.m4 cage2.m1 cage2.m2 cage2.m3 cage2.m4
0.500 4.805 0.080 1.620 0.000 1.125 0.980 2.000
cage3.m1 cage3.m2 cage3.m3 cage3.m4
0.405 0.980 0.245 2.880
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.