Welch | R Documentation |
Esegue l'Anova univariata corretta con il metodo Welch per varianze non omogenee.
Welch( n, mx, s2x )
n |
vettore delle numerosita' campionarie. |
mx |
vettore delle medie. |
s2x |
vettore delle varianze. |
Restituisce un oggetto di classe anova
con i seguenti elementi:
$Df |
gradi di liberta' relativi alla statistica test. |
$Mean Sq |
valore delle varianze. |
$F value |
valore delle statistica test F corretta. |
$Pr(>F) |
probabilita' associata alla statistica test. |
Massimiliano Pastore
Welch, B.L. (1951). On the comparison of several mean values: An alternative approach. Biometrika, 38, 330-336.
Howell, D.C. (1997). Statistical Methods for Psychology. Duxbury Press, Belmont, CA.
Keppel, G. (1991). Design and analysis. Prentice Hall, London.
y <- c(rnorm(10,5,2),rnorm(5,5,8)) # variabile dipendente
A <- factor(c(rep(1:2,5),rep(3,5))) # tre gruppi
medie <- aggregate(y,list(A),mean)$x
varianze <- aggregate(y,list(A),var)$x
bartlett.test(y,A) # le varianze sono omogenee?
Welch(c(5,5,5),medie,varianze)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.