23
Correlated-Samples ANOVA The Multivariate Approach One-Way

Correlated-Samples ANOVA

  • Upload
    sheena

  • View
    37

  • Download
    0

Embed Size (px)

DESCRIPTION

Correlated-Samples ANOVA. The Multivariate Approach One-Way. Cross-Species-Fostering. House mice onto house mice, prairie deer mice, or domestic Norway rats. After weaning, tested in apparatus with access to tunnels scented like clean pine shavings, house mouse, deer mouse, or rat. - PowerPoint PPT Presentation

Citation preview

Page 1: Correlated-Samples ANOVA

Correlated-Samples ANOVA

The Multivariate ApproachOne-Way

Page 2: Correlated-Samples ANOVA

Cross-Species-Fostering• House mice onto house mice, prairie deer

mice, or domestic Norway rats.• After weaning, tested in apparatus with

access to tunnels scented like clean pine shavings, house mouse, deer mouse, or rat.

• House mice and deer mice were descendants of recently wild-trapped mice.

• Reversed light cycle, red lighting

Page 3: Correlated-Samples ANOVA

Mus musculus

Page 4: Correlated-Samples ANOVA

Peromyscus maniculatus

Page 5: Correlated-Samples ANOVA

Rattus norwegicus domestic

Page 6: Correlated-Samples ANOVA

Homo sapiens

Page 7: Correlated-Samples ANOVA

data Mus; infile 'C:\ ... \tunnel4b.dat';INPUT NURS V_clean V_Mus V_Pero V_Rat VT_clean VT_Mus VT_Pero VT_Rat T_clean T_Mus T_Pero T_Rat TT_clean TT_Mus TT_Pero TT_Rat L_clean L_Mus L_Pero L_Rat LT_clean LT_Mus LT_Pero LT_Rat; Format NURS rodent. ;The TT_ variables have been transformed to normal.

Page 8: Correlated-Samples ANOVA

The ANOVAProc ANOVA;Model TT_clean TT_mus TT_pero TT_rat = / nouni;Repeated scent 4 Contrast(1) /summary printe; run;• “nouni” suppresses irrelevant output• “summary” and “printe” gives us ANOVA

tables for contrasts and “printe” tests sphericity

Page 9: Correlated-Samples ANOVA

Contrasts• Contrast(1) – compare the first condition

with all other conditions.• Profile – compare each condition with the

next condition• Polynomial – trend analysis• Helmert – contrast each condition with the

mean of the following conditions• Mean(n) -- contrast each level (except the

nth) with the mean of all other levels.

Page 10: Correlated-Samples ANOVA

Mauchly

• Sphericity Assumption Violated

Sphericity TestsVariables DF Mauchly's

CriterionChi-Square Pr > ChiSq

Orthogonal Components

5 0.6433986 14.87119 0.0109

Page 11: Correlated-Samples ANOVA

MANOVAMANOVA Test Criteria and Exact F Statistics for the Hypothesis of no scent Effect

Statistic Value F Value Num DF Den DF Pr > FWilks' Lambda

0.58343 7.85 3 33 0.0004

Pillai's Trace 0.41656 7.85 3 33 0.0004Hotelling-Lawley Trace

0.71398 7.85 3 33 0.0004

Roy's Greatest Root

0.71398 7.85 3 33 0.0004

Page 12: Correlated-Samples ANOVA

Univariate ApproachSource DF Anova

SSMean Square

F Value

Pr > F Adj Pr > F

G - G H - F

scent 3 1467.267 489.089 7.01 0.0002 0.0009 0.0006

Error(scent) 105 7326.952 69.7804      

Greenhouse-Geisser Epsilon 0.7824Huynh-Feldt Epsilon 0.8422

• Both the G-G and the H-F are near or above .75, it is probably best to use the H-F

• df = 3(.8422), 105(.8422) = 2.53, 88.43

Page 13: Correlated-Samples ANOVA

Contrasts: Clean Scent vs.• Mus musculus: p = .008• Peromyscus maniculatus: p = .29• Rattus norvegicus: p = .14

Page 14: Correlated-Samples ANOVA

Untransformed Meansproc means; var T_clean -- T_Rat;

Page 15: Correlated-Samples ANOVA

Randomized Blocks Datadata multi; input block1-block3; subj = _N_;B1vsB3 = block1-block3; B1vsB2 = block1-block2; B2vsB3=block2-block3; cards;10 9 78 6 37 6 45 6 3And two more cases

Page 16: Correlated-Samples ANOVA

Randomized Blocks ANOVA• Proc ANOVA;• Model block1-block3 = / nouni;• Repeated block 3 / nom;

Page 17: Correlated-Samples ANOVA

Randomized Blocks ResultsSource DF Anova

SSMean Square

F Value

Pr > F Adj Pr > F

G - G H - F

block 2 39.00000 19.50000 39.00 <.0001 0.0004 0.0001

Error(block) 10 5.000000 0.500000        

Greenhouse-Geisser Epsilon 0.6579Huynh-Feldt Epsilon 0.8000

Page 18: Correlated-Samples ANOVA

Pairwise Comparisonsproc means t prt; var B1vsB3 B1vsB2 B2vsB3; run;

Page 19: Correlated-Samples ANOVA

Want Pooled Error?• The comparisons on previous slide use

individual error terms.• Get more power with pooled error.• First, unpack data from multivariate setup

to univariate setup.• Then use ANOVA with desired procedure

(LSD, Tukey, REGWQ, etc.)

Page 20: Correlated-Samples ANOVA

Unpack the Datadata univ; set multi;array b[3] block1-block3; do block = 1 to 3; errors = b[block]; output; end; drop block1-block3;

Page 21: Correlated-Samples ANOVA

The Unpacked Datasubj block errors1 1 101 2 91 3 72 1 82 2 62 3 33 1 7

And so on

Page 22: Correlated-Samples ANOVA

LSD with Pooled ErrorProc ANOVA; Class subj block; Model errors = subj block; Means block / lsd lines; run;

Means with the same letter are not significantly different.

t Grouping Mean N blockA 9.3333 6 1       B 8.3333 6 2       C 5.8333 6 3

Page 23: Correlated-Samples ANOVA

SPSS• Want to use SPSS instead of SAS?• See my documentThe Multivariate Approach to the One-Way Repeated Measures ANOVA