Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: stats
See also: levene

Quantlet: anova
Description: anova runs Simple Analysis of Variance

Usage: (out)=anova(datain)
Input:
datain n x p data set
Output:
out text output (string array)

Example:
library("stats")
x=read("gas.dat")
re=anova(x)
re

Result:
[ 1,] "Groups description"
[ 2,] "-------------------------------------------------"
[ 3,] "count       mean     st.dev.  95% conf.i. for mean"
[ 4,] "-------------------------------------------------"
[ 5,] "    4    91.1000     0.4690    90.3489,   91.8511"
[ 6,] "    4    91.3500     0.5260    90.5077,   92.1923"
[ 7,] "    4    91.5500     0.6191    90.5585,   92.5415"
[ 8,] "    4    91.8500     0.3416    91.3030,   92.3970"
[ 9,] "    4    92.7000     0.3559    92.1301,   93.2699"
[10,] "-------------------------------------------------"
[11,] "               ANALYSIS OF VARIANCE              "
[12,] "-------------------------------------------------"
[13,] "Source of Variance  d.f.  Sum of Sq.             "
[14,] "-------------------------------------------------"
[15,] "Between Groups       4       6.1080"
[16,] "Within Groups       15       3.3700"
[17,] "Total               19       9.4780"
[18,] "-------------------------------------------------"
[19,] "F value      6.7967"
[20,] "sign.        0.0025"
[21,] "-------------------------------------------------"
[22,] "Levene Test for Homogenity of Variances          "
[23,] "-------------------------------------------------"
[24,] "   Statistic     df1     df2    Signif.          "
[25,] "      0.7385       4      15    0.5802           "



Author: M. Benko, W. Haerdle, 20010130 license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006