Welch: Test di Welch

WelchR Documentation

Test di Welch

Description

Esegue l'Anova univariata corretta con il metodo Welch per varianze non omogenee.

Usage

Welch( n, mx, s2x )

Arguments

n

vettore delle numerosita' campionarie.

mx

vettore delle medie.

s2x

vettore delle varianze.

Value

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.

Author(s)

Massimiliano Pastore

References

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.

Examples

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)

masspastore/ADati documentation built on April 18, 2024, 5:55 p.m.