Professional Documents
Culture Documents
Measures
Alternatives to Fixed Effects
Analyses
Questions
What is the difference between fixed- and
random-effects in terms of treatments?
How are F tests with random effects
different than with fixed effects?
Describe a concrete example of a
randomized block design. You should have
1 factor as the blocking factor and one other
factor as the factor of main interest.
Questions (2)
Fixed
Examples
Conditions
Conditions
Examples
Persuasiveness
of commercials
Treatment
Sampled
All of interest
Sex of
participant
Experimenter
effect
Replication
different
Impact of team
members
Variance due to
IV
2
6.0
6.1
6.6
6.5
5.9
5.9
6.4
6.3
6.21
3
6.3
5.5
5.7
6.0
6.1
6.2
5.8
5.6
5.9
4
6.4
6.4
6.5
6.1
6.6
5.9
6.7
6.0
6.33
5
5.7
5.9
6.5
6.3
6.2
6.4
6.0
6.3
6.16
Sum of
Squares
Source
DF
Model
3.48150000
0.87037500
Error
35
2.84250000
0.08121429
Corrected Total
39
6.32400000
10.72 <.0001
MS ( A)
MS ( AxB )
B
AxB
Error
Kn n
2
A
2
AB
2
e
2
Jn B2 n AB
e2
2
n AB
e2
e2
df
J-1,
(J-1)(K-1)
MS ( B ) K-1,
MS ( AxB ) (J-1)(K-1)
MS ( AxB ) (J-1)(K-1),
MS (error ) JK(n-1)
Applications of Random
Effects
T2
XX '
T2 E2
Review
What is the difference between fixedand random-effects in terms of
treatments?
How are F tests with random effects
different than with fixed effects?
E(MS)
A
workbook
(fixed)
B learner
(random)
Kn j
j
n 2 2
AB
e
J 1
df
MS ( A) J-1,
MS ( AxB ) (J-1)(K-1)
Jn B2 e2
If desired,
use MSe
AxB
MS ( AxB ) (J-1)(K-1),
MS (error ) JK(n-1)
Error
e2
2
AB
2
e
Look up
designs
Review
Describe a concrete example of a
randomized block design. You should
have 1 factor as the blocking factor and
one other factor as the factor of main
interest.
Describe a study in which Depression
is a blocking factor.
Con
Individuals serve as
Carry over effects
own control
improved power
May be cheaper to run Participant sees design
- demand
characteristics
Scarce participants
RM Participant Factor
Source
df
Between
Subjects
K-1
Within
Subjects
Treatments
Subjects x
Treatments
Total
MS
SSsub
K 1
E(MS)
2
No test
e2 J sub
2
e2 subx
treat
Ka
2
j
MS treat
SStreat
j
MS sub x treat
J 1
J 1
(J-1)(K-1) SSsub. x treat
No test
2
2
e subx treat
( J 1)( K 1)
J-1
JK-1
Drug 1
Drug 2
Drug 3
Drug 4
30
28
16
34
27
14
18
10
22
16
24
20
18
30
23
38
34
20
44
34
26
28
14
30
24.5
Mean
26.4
25.6
15.6
32
Mean
24.9
Total SS
Person
Drug 1
Drug 2
Drug 3
Drug 4 Mean
30
28
16
34
27
14
18
10
22
16
24
20
18
30
23
38
34
20
44
34
26
28
14
30
24.5
Mean
26.4
25.6
15.6
32
24.9
Drug SS
(26 .4 24 .9) 2
Person
Drug
D*D
Person
Drug
D*D
26.4
2.25
15.6
86.49
26.4
2.25
15.6
86.49
26.4
2.25
15.6
86.49
26.4
2.25
15.6
86.49
26.4
2.25
15.6
86.49
25.6
0.49
32
50.41
25.6
0.49
32
50.41
25.6
0.49
32
50.41
25.6
0.49
32
50.41
25.6
0.49
32
50.41
Total
698.20
Person SS
Person
Drug
27
(27 24 .9) 2
Drug
4.41 1
27
4.41
16
79.21 2
16
79.21
23
3.61 3
23
3.61
34
82.81 4
34
82.81
24.5
0.16 5
24.5
0.16
27
4.41 1
27
4.41
16
79.21 2
16
79.21
23
3.61 3
23
3.61
34
82.81 4
34
82.81
24.5
0.16 5
24.5
Total
D*D
Person
D*D
0.16
680.8
Summary
Total = 1491.8; Drugs = 698.2, People=680.8.
Residual = Total (Drugs+People) = 1491.8-(698.2+680.8)
=112.8
Source
SS
df
MS
Between People
680.8
Nuisance
variance
Within people
(by summing)
811.0
15
Drugs
698.2
232.73
Residual
112.8
12
9.40
1491.8
19
Fcrit(.05)
Total
24.76
=3.95
SAS
Run the same problem using SAS.
2 Factor, 1 Repeated
Subject B1
B2
B3
B4
A1 2
3.25
3.75
5.25
A2 5
5.25
5.75
3.83
2.5
6.17
3.33
4.56
DV=errors in control setting dials; IV(A) is dial calibration between; IV(B) is dial shape - within. Observation is
randomized over dial shape.
data d1;
input i1-i4;
cards;
0053
3154
4362
4278
5466
7589
data d2; set d1;
array z i1-i4;
do over z;
if _N_ le 3 then a =1;
if _N_ gt 3 then a =2;
sub = _N_;
b = _I_;
y=z;
output;
end;
proc print;
proc glm;
class a b sub;
model y = a b a*b sub(a) sub*b;
test h=a e=sub(a)/htype=1 etype=1;
test h=b a*b e=sub*b/htype=1 etype=1;
run;
Summary
Source
Between people
A(calibration)
Subjects within
groups
Within people
B (dial shape)
AB
BxSub within
group
SS
68.21
51.04
17.17
df
5
1
4
69.75
47.46
7.46
14.83
18
3
3
12
MS
51.04
4.29
11.9
15.82
2.49
1.24
12.76
2.01
Assumptions of RM
Orthogonal ANOVA assumes homogeneity of error
variance within cells. IVs are independent. With
repeated measures, we introduce covariance (correlation)
across cells. For example, the correlation of scores
across subjects 1-3 for the first two calibrations is .89.
Repeated measures designs make assumptions about the
homogeneity of covariance matrices across conditions for
the F test to work properly. If the assumptions are not
met, you have problems and may need to make
adjustments. You can avoid these assumptions by using
multivariate techniques (MANOVA) to analyze your
data. I suggest you do so.
If you use ANOVA, you need to look up your design to
get the right F tests and check on the assumptions.
Review
How is a repeated measures design different from a
totally between subjects design in the collection of
the data?
How does the significance testing change from the
totally between to a design to one in which one or
more factors are repeated measures (just the general
idea, you dont need to show actual F ratios or
computations)?
Describe one argument for using repeated measures
designs and one argument against using such designs
(or describe when you would and would not want to
use repeated measures).