Anda di halaman 1dari 39

SPSS - ANOVA

Miquel A. Belmonte
Hospital General de Castelln Espaa, 2000

Eleccin de tests estadsticos


Varbl. dependientes 1 Varbl. Indep. 1
CATEG CATEG CUANT CATEG X2 Student T Loglinear CUANT Oneway Correlac ANOVA Manova

>1
CATEG CUANT Manova

>1
CUANT Reg. Logist Reg.Mult

ANOVA - conceptos bsicos

Influencia de una o varias variables categricas (factores) sobre una variable dependiente cuantitativa Valora efectos principales de factores e interacciones de stos entre s Admite una o ms covariables de control, de tipo cuantitativo Estudia reduccin de variabilidad (suma de cuadrados) Test paramtrico: Compara las medias de los subgrupos formados para cada factor

Condiciones
Igualdad de varianzas Distribucin paramtrica

f i f

ANOVA - estadsticos

SS total = SS efectos principales + SS interacciones orden 2 y sucesivas + SS residuos SS (factor o interaccin) MS = DF (grados de libertad) F= MS (factor o interaccin) MS de los residuos

ANOVA - Output SPSS


Source of Variation Sum of Squares DF Mean Square F Sig of F

Covariates AGE
Main Effects JOBCAT SEXRACE 2-Way Interactions JOBCAT SEXRACE Explained Residual Total

601239435 601239435
11677985838 7428829687 709773003 318155497 318155497 12597380770 4885977728 17483358499

1 601239435,132 1 601239435,132
7 1668283691,12 4 1857207421,83 3 236591000,879 8 8 39769437,169 39769437,169

54,882 54,882
152,284 169,529 21,596 3,630 3,630 71,869

,000 ,000
,000 ,000 ,000 ,000 ,000 ,000

16 787336298,143 446 10955107,014 37842767,313

462

Sum of Squares Mean Square = _______________ DF

F = _____________________ MS Factor explained

MS Residual

Modelos de ANOVA
ANOVA
ANOVA

factorial general
multivariado: MANOVA

ANOVA

de medidas repetidas

ANOVA Modelo Lineal General Factorial

Definicin del modelo

Opciones

Contrastes
Permiten comparar niveles o categoras entre s, dentro de cada factor considerado.

t i f

Profile Plots
Muestran estimaciones de Media Marginal para cada subgrupo formado.

Estimated Marginal Means of Current salary


24000 22000 20000 18000 16000 14000 12000 10000 8000 White males Minority males White females Minority f emales

40000

30000

Mean of Current salary

20000

10000

0 Clerical Security of f icer Of f ice trainee Exempt employ ee MBA trainee Technical College trainee

Sex & race class ification

Employm ent category

Grfico de distribucin
Spread vs. Level Plot of Current salary
12000

10000

8000

6000

4000

2000 0 0 10000 20000 30000 40000

Level (Mean)
Groups: Sex & race classif ication * Employ ment category

ANOVA Modelo Lineal General Factorial


SYNTAX
UNIANOVA
salnow BY sexrace jobcat WITH age /METHOD = SSTYPE(3) /INTERCEPT = INCLUDE /PRINT = DESCRIPTIVE ETASQ HOMOGENEITY /CRITERIA = ALPHA(.05) /DESIGN = age sexrace jobcat sexrace*jobcat .

S t d e M v S e E N i e a a m W C h , , 6 4 7 5 6 5 O , , 2 4 3 3 8 5 S e , , 4 5 1 3 0 4 C , , 9 9 3 7 4 3 E x , , 7 9 2 1 5 8 M , , 6 4 7 7 3 Te , , 6 4 7 5 6 To , 1 , 1 2 9 6 6 4 M C i n , , 5 8 3 7 0 5 O , , 0 7 1 0 5 2 S e , , 3 1 1 1 7 3 C , 0 0 1 , E x , , 0 4 0 1 2 M , 0 0 1 , To , , 4 9 6 4 5 4 W C h , , 1 3 8 2 2 5 O , , 7 6 8 8 8 1 C , , 5 2 7 7 7 E x , , 0 2 0 1 2 M , 0 0 1 , To , 1 , 7 7 7 2 6 6 M C i n , , 7 5 3 5 2 2 O , , 0 7 0 7 8 To , , 0 9 4 0 5 0 To C , 2 , 8 5 2 2 7 7 O , 1 , 4 6 3 1 0 6 S e , , 5 8 2 6 5 7 C , , 0 1 4 7 5 1 E x , , 6 4 3 2 0 2 M , , 0 0 0 6 5 Te , , 6 4 7 5 6 To , 4 , 8 2 7 3 6 4

Estadsticas Descriptivas

ANOVA Output

t i f I

ANOVA factorial
Simple

Diseos factoriales de modelos saturados Mtodos:


nico: todos los elementos concurrentemente Jerrquico: covariables - factores- interaccin Experimental: factores- interaccin

General

Diseos factoriales de modelos no saturados Permite especificar con ms flexibilidad el modelo a utilizar y variedad de estadsticos

ONEWAY
Caso particular de ANOVA de un factor Una sola variable dependiente cuantitativa Un factor con varias categoras ONEWAY, pero no ANOVA, produce:

Contrastes Comparaciones mltiples Pruebas de tendencia Test homogeneidad de varianza

ONEWAY

Resultados Oneway
Listado descriptivo
i

o p t d p o o x e i i u a i u a 7 2 7 6 5 9 0 0 6 1 0 2 0 2 0 0 7 6 5 8 5 6 0 0 1 7 5 3 6 8 4 0 2 3 0 6 7 8 0 0 5 0 6 6 6 4 0 0 T 6 7 5 5 9 4 0 0 T 4 3 6 2 6 9 0 0

ONEWAY - Output SPSS


Analysis of Variance Sum of Squares 11168758807 9966174401 8987023511 2181735296 6314599691 17483358499 Mean Squares 2792189702 9966174401 8987023511 727245098,6 13787335,57 F Ratio 202,5184 722,8499 651,8318 52,7473 F Prob. ,0000 ,0000 ,0000 ,0000 Source Between Groups Unweighted Linear Term Weighted Linear Term Deviation from Linear Within Groups Total D.F. 4 1 1 3 458 462

ONEWAY - Comparaciones Mltiples


Multiple Range Tests: Scheffe test with significance level ,05
The difference between two means is significant if MEAN(J)-MEAN(I) >= 2625,5795 * RANGE * SQRT(1/N(I) + 1/N(J)) with the following value(s) for RANGE: 4,37

(*) Indicates significant differences which are shown in the lower triangle C l e r Mean 11134,8194 11136,4118 12375,5556 23901,0732 25595,6250 JOBCAT Clerical Office t Security College Exempt e O f f i S E e C x c o e u l m

* * * * * *

Oneway - Contrastes
t

r a N E 1 2 3 m a , Tu C l 7 2 O 6 1 S e 7 6 C o 0 1 7 E x 6 2 3 M 0 5 0 Te 6 6 7 S i 0 0 6 8 0 a , S C c l 7 2 O 6 1 S e 7 6 C o 0 1 7 E x 6 2 3 M 0 5 0 Te 6 6 7 S i 7 0 3 6 0

M e a . U s

b . Th Ty

Oneway - Means Plot


40000

30000

Mean of Current salary

20000

10000

0 Clerical Security of f icer Of f ice trainee Exempt employ ee MBA trainee Technical College trainee

Employm ent category

Tipos de Anlisis de Varianza


Nmero de Varbl. independientes
1 Paramtrico Oneway >1 independ ANOVA >1 relacionada

Condiciones previas

No Paramtrico

KruskalWallis

Friedman

Kruskal-Wallis
Oneway no paramtrico

Tests no paramtricos - K muestras independientes

Kruskal-Wallis
Estadsticos descriptivos

Kruskal-Wallis
Prueba de la Mediana

l i i i i l i

Kruskal-Wallis
Contrastes

b d

r r a l a 7 g 6

0 a 0 I L 0 c L 0 9 a 2

Friedman
Anova de dos vas para muestras apareadas
Friedman es el test bsico, que compara los rangos entre K variables relacionadas entre s. Se basa en X2

Kendall W es un test de concordancia donde cada variable es un sujeto de estudio y cada caso es un juez.
Cochran Q se usa cuando todas las variables independientes son dicotmicas

Friedman
Resultados

t i i

ANOVA - otros modelos


ANOVA

multivariado: MANOVA

Ms de una variable dependiente Gran complejidad de modelos

ANOVA

medidas repetidas

La variable dependiente se mide en ms de una ocasin para cada sujeto Multivariante complejo

MANOVA

ti

v a r

c a te

y p o E t h t e a V E S E a r q r f F d S lo u f u f i r e e g a a I n P t i e l la r 1 1 5 2 , 0 , 7 , 6 , 0 , 5 0 , 9 0 0 7 8 0 1 0 0 5 0 1 8 a W ilk 1 1 5 2 , 0 , 2 , 6 , 0 , 4 0 , 9 0 0 7 2 0 1 0 0 5 0 1 8 a H o t e 1 3 1 5 2 , 0 , 1 , 6 , 0 , 3 0 , 9 0 0 7 8 0 1 0 0 5 0 1 8 a R o y 1 3 1 5 2 , 0 , 1 , 6 , 0 , 3 0 , 9 0 0 7 8 0 1 0 0 5 0 1 8 a E P D i l A la 1 2 2 , 0 , 3 , 9 , 0 , 7 0 , 3 1 0 3 0 0 2 0 0 7 0 0 0 a W ilk 1 2 2 , 0 , 6 , 9 , 0 , 3 0 , 3 1 0 3 0 0 2 0 0 7 0 0 0 a H o t e 1 2 2 , 0 , 5 , 9 , 0 , 8 0 , 3 1 0 3 6 0 2 0 0 7 0 0 0 a R o y 1 2 2 , 0 , 5 , 9 , 0 , 8 0 , 3 1 0 3 6 0 2 0 0 7 0 0 0 a T P _ i E l la V 1 2 , 0 , 1 , 6 , 0 , 1 0 , 6 5 0 1 8 0 9 3 0 1 0 4 8 a W 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 a W ilk 2 6 , 0 , 6 , 7 , 0 , 5 0 , 8 5 0 1 4 0 7 9 0 9 0 0 1 H o t e 1 6 , 8 , 4 , 7 , 0 , 9 0 , 4 6 0 1 5 0 3 2 0 9 0 2 8 b R o y 1 1 3 , 1 , 4 , 5 , 0 , 1 0 , 2 2 0 2 6 0 5 6 0 9 0 3 4 a I N P i Y l l a E , 0 , , 0 0 0 0 0 0 0 , 0 , , a S E X O W i lk 1 1 , 0 0 , , 0 0 5 0 0 0 0 , 0 , ,

Manova Resultados

a H o t e , 2 0 , , 0 0 0 0 0 0 0 , 0 , , a R o y 2 , 9 , 1 0 , 0 , 0 , 0 0 , 0 0 0 0 0 0 0 0 0 0 0 0 0

a . E x

a c

b . T h e

c . D e s i C A L I

ANOVA medidas repetidas

Se define un factor intra-sujetos con el nmero de categoras o niveles adecuado al nmero de mediciones realizadas

Se especifican las variables de las mediciones realizadas como grupos del factor intra-sujetos creado. Pueden definirse tambin covariables de correccin y factores de agrupamiento entre-sujetos.

M u m e a q q u S S d u a F i f o a g F S A 4 1 3 5 3 3 4 1 6 G 4 5 0 3 8 3 1 7 1 6 H 4 1 0 3 7 3 6 9 1 5 L 4 0 4 3 1 3 0 3 1 7o F S A 6 5 4 1 2 3 4 4 0 Las pruebas de efectos G 6 5 6 4 2 2 1 0 4 5 entre sujetos icnluyen H 6 1 8 4 2 2 6 5 4 1 diversos tests. L 6 0 6 4 2 2 0 2 4 5o Se determinan tambin F S A 9 3 5 9 4 3 1 5 6 G 9 5 6 5 9 4 1 2 5 2 estadsticos para las H 9 1 1 5 9 4 6 9 5 5 interacciones con el factor L 9 0 9 5 7 4 0 4 5 3o estudiado. F S A 8 6 3 1 3 3 1 3 6 G 8 5 9 3 4 3 1 6 3 5 H 8 1 6 3 3 3 6 5 3 6 L 8 0 8 3 6 3 0 3 3 6o E S r 3 7 2 9 8 4 G 3 1 8 9 5 7 H 3 1 7 9 8 3 L o 3 0 7 9 0 1

n F a 1 n S 2 3 M y p e 4

Resultados - Efectos intrasujetos

ANOVA medidas repetidas

Pruebas multivariadas
i

b a

o t h r a S r E F d o li u f f g a F P A 0 0 8 4 6 0 0 8 a 0 0 8 6 6 0 0 8 a H 0 0 8 6 6 0 0 8 a R 0 0 8 6 6 0 0 8 a F P A 0 0 7 9 6 0 0 4 a 0 0 7 1 6 0 0 4 a H 0 0 7 6 6 0 0 4 a R 0 0 7 6 6 0 0 4 a F P A 0 0 8 0 6 0 0 1 a 0 0 8 0 6 0 0 1 a H 0 0 8 6 6 0 0 1 a R 0 0 8 6 6 0 0 1 a F P A 0 0 2 7 0 0 0 8 a 0 0 2 3 0 0 0 8 a H 0 0 2 0 0 0 0 8 a R 0 0 2 0 0 0 0 8

a . E x

b . D e

ANOVA medidas repetidas

Contrastes intra-sujetos
u

p e e a u S d u S a F F i f g a F L 9 1 9 4 4 Q 2 1 2 1 3 C 2 1 2 0 3 F L 4 1 4 4 1 Q 7 1 7 3 5 C 2 1 2 7 1 F L 2 1 2 7 9 Q 2 1 2 5 4 C 6 1 6 3 7 F L 3 1 3 8 0 Q 2 1 2 8 9 C 8 1 8 8 6 E L 9 6 3 Q 3 6 2 C 7 6 6

ANOVA medidas repetidas

i f I

Anda mungkin juga menyukai