ANOVA ONEWAY AND FACTORIAL (TWOWAY, R.M, ANCOVA) Flashcards
When do we use ANOVA?
Within group ANOVA
Error
Between group ANOVA
Effect
F test ANOVA
Si F es muy superior a la unidad, las varianzas comparadas difieren y se rechazará la hipótesis nula
ANOVA IN STATA
Total SS and df in ANOVA
Assumptions so as to use ANOVA
anova allows to save the residuals if after anova you use the command:
predict myresiduals, res
What can we see?
Normality test for residuals in ANOVA
When do we use Kruskal-Wallis?
Kruskal-Wallis, ¿qué observamos?
- Estamos haciendo un cambio.
- Vemos que residuals no cumplen normalidad y no hay homogeneidad (Bartlett).
DEFINITIVAMENTE, USAMOS KRUSKAL WALLIS
KRUSKAL-WALLIS PROCEDURE
KRUSKAL-WALLIS IN STATA
BONFERRONI: post hoc penalization
BONFERRONI: post hoc penalization with our partial
Sidak multiple testing method (post hoc)
Scheffe multiple testing method (post hoc)
A PRIORI ORTHOGONAL TEST FOR MULTIPLE TESTING
Contrasts in multiple testing
Procedimiento Benjamin-Hochberg para controlar FDR en múltiple testing
Método de Bejamin-Hochberg
FDR IN STATA
REPASO STATA ANOVA
TWO-WAY BALANCED ANOVA
Identical Sd and n in each cell
TWO-WAY ANOVA BALANCED DESIGN EJERCICIO TIPO EXAMEN
TWO-WAY ANOVA EXERCISE WITH INTERACTION
When we have interaction, we split sample size
Testing for interaction in a TWO-WAY ANOVA
Recordar que los DF en interaction se sacan multiplicando los DF de las variables independientes
TWO-WAY ANOVA WITH INTERACTION
ESQUEMA GENERAL SS DISTRIBUTIONS
ESQUEMA DE VARIABILIDADES RESIDUALES
PRIMER PASO EN REPEATED MEASURES ANOVA
Reshape to long format
STATA PARA REPEATED MEASURES ANOVA, después de haber pasado a long format
DF en test de ANOVA for repeated measures
Sphericity in ANOVA for repeated measures
ANOVA FOR REPEATED MEASURES
ANOVA FOR REPEATED MEASURES ASSUMPTIONS
What method are we using?
ANCOVA IN STATA
We use margins to obtain now the adjusted means
Linear regression
SIMPLE LINEAR REGRESSION STATA