Academic salaries
Anova, Ancova, Manova, Mancova
Miłosz Poruba
Published
on piątek 26 styczeń 2024
The Salaries dataset from the carData consists of nine-month academic
salary for Assistant Professors, Associate Professors and Professors in
a college in the U.S. The data were collected as part of the on-going
effort of the college’s administration to monitor salary differences
between male and female faculty members.
- Perform the 3-way Anova with and w/o interactions. Interpret the
results.
- Can years since doctorate (yrs.since.phd), length of service
(yrs.service) be significant as covariates?
- Is there any significant difference in years since PhD
(yrs.since.phd) and seniority (yrs.service) of different rank
professors?
Descriptive
There are many more male observations than female.
Looking at the histograms we can notice that the salary distribution is
skewed to the right. We will have to deal with this later.
There are a few outliers.
Stats
|
discipline
|
sex
|
rank
|
Mean_salary
|
SD_salary
|
Count
|
|
A
|
Female
|
AsstProf
|
72933
|
5463
|
6
|
|
A
|
Female
|
AssocProf
|
72129
|
6403
|
4
|
|
A
|
Female
|
Prof
|
109632
|
15095
|
8
|
|
A
|
Male
|
AsstProf
|
74270
|
4580
|
18
|
|
A
|
Male
|
AssocProf
|
85049
|
10612
|
22
|
|
A
|
Male
|
Prof
|
120619
|
28505
|
123
|
|
B
|
Female
|
AsstProf
|
84190
|
9792
|
5
|
|
B
|
Female
|
AssocProf
|
99436
|
14086
|
6
|
|
B
|
Female
|
Prof
|
131836
|
17504
|
10
|
|
B
|
Male
|
AsstProf
|
84647
|
6900
|
38
|
|
B
|
Male
|
AssocProf
|
101622
|
9608
|
32
|
|
B
|
Male
|
Prof
|
133518
|
26514
|
125
|
Histograms

Boxplots

Outliers
|
rank
|
discipline
|
sex
|
yrs.since.phd
|
yrs.service
|
salary
|
is.outlier
|
is.extreme
|
|
AsstProf
|
A
|
Female
|
7
|
6
|
63100
|
TRUE
|
FALSE
|
|
AssocProf
|
A
|
Female
|
25
|
22
|
62884
|
TRUE
|
FALSE
|
|
AsstProf
|
A
|
Male
|
3
|
1
|
63900
|
TRUE
|
FALSE
|
|
AsstProf
|
A
|
Male
|
2
|
0
|
85000
|
TRUE
|
TRUE
|
|
AsstProf
|
A
|
Male
|
8
|
4
|
81035
|
TRUE
|
FALSE
|
|
AssocProf
|
A
|
Male
|
14
|
8
|
100102
|
TRUE
|
FALSE
|
|
AssocProf
|
A
|
Male
|
9
|
7
|
70000
|
TRUE
|
FALSE
|
|
AssocProf
|
A
|
Male
|
11
|
1
|
104800
|
TRUE
|
FALSE
|
|
AssocProf
|
A
|
Male
|
45
|
39
|
70700
|
TRUE
|
FALSE
|
|
AssocProf
|
A
|
Male
|
10
|
1
|
108413
|
TRUE
|
FALSE
|
|
AssocProf
|
A
|
Male
|
11
|
8
|
104121
|
TRUE
|
FALSE
|
|
Prof
|
A
|
Male
|
29
|
7
|
204000
|
TRUE
|
FALSE
|
|
Prof
|
A
|
Male
|
42
|
18
|
194800
|
TRUE
|
FALSE
|
|
Prof
|
A
|
Male
|
43
|
43
|
205500
|
TRUE
|
FALSE
|
|
AssocProf
|
B
|
Female
|
14
|
7
|
109650
|
TRUE
|
TRUE
|
|
AssocProf
|
B
|
Female
|
12
|
9
|
71065
|
TRUE
|
TRUE
|
|
AssocProf
|
B
|
Male
|
13
|
11
|
126431
|
TRUE
|
FALSE
|
|
Prof
|
B
|
Male
|
38
|
38
|
231545
|
TRUE
|
FALSE
|
First assumption checks
Multiple groups have not met normality assumptions. Homogeneity of
variance is also not with us.
Normality by Shapiro test
|
rank
|
discipline
|
sex
|
variable
|
statistic
|
p
|
|
AsstProf
|
A
|
Female
|
salary
|
0.870
|
0.226
|
|
AssocProf
|
A
|
Female
|
salary
|
0.863
|
0.269
|
|
Prof
|
A
|
Female
|
salary
|
0.934
|
0.549
|
|
AsstProf
|
A
|
Male
|
salary
|
0.941
|
0.300
|
|
AssocProf
|
A
|
Male
|
salary
|
0.878
|
0.011
|
|
Prof
|
A
|
Male
|
salary
|
0.952
|
0.000
|
|
AsstProf
|
B
|
Female
|
salary
|
0.889
|
0.354
|
|
AssocProf
|
B
|
Female
|
salary
|
0.635
|
0.001
|
|
Prof
|
B
|
Female
|
salary
|
0.974
|
0.923
|
|
AsstProf
|
B
|
Male
|
salary
|
0.941
|
0.046
|
|
AssocProf
|
B
|
Male
|
salary
|
0.967
|
0.416
|
|
Prof
|
B
|
Male
|
salary
|
0.978
|
0.044
|
Normality by overall Q-Q plot

Normality by group Q-Q plot

Levene test for homogeneity of variance
|
df1
|
df2
|
statistic
|
p
|
|
11
|
385
|
9.05
|
0
|
ANOVA
The groups are not balanced. Therefore we have to use type III ANOVA.
We can see that rank as well as discipline strongly influence
salaries.
There were no significant interactions found.
3-way ANOVA with interactions
|
Effect
|
DFn
|
DFd
|
F
|
p
|
p<.05
|
ges
|
|
rank
|
2
|
367
|
74.521
|
0.000
|
|
0.289
|
|
discipline
|
1
|
367
|
27.432
|
0.000
|
|
0.070
|
|
sex
|
1
|
367
|
0.260
|
0.610
|
|
0.001
|
|
rank:discipline
|
2
|
367
|
1.253
|
0.287
|
|
0.007
|
|
rank:sex
|
2
|
367
|
0.109
|
0.897
|
|
0.001
|
|
discipline:sex
|
1
|
367
|
0.648
|
0.421
|
|
0.002
|
|
rank:discipline:sex
|
2
|
367
|
0.318
|
0.728
|
|
0.002
|
2-way interactions
|
discipline
|
Effect
|
DFn
|
DFd
|
F
|
p
|
p<.05
|
ges
|
|
A
|
sex
|
1
|
367
|
0.996
|
0.319
|
|
0.003
|
|
A
|
rank
|
2
|
367
|
75.400
|
0.000
|
|
0.291
|
|
A
|
sex:rank
|
2
|
367
|
0.339
|
0.712
|
|
0.002
|
|
B
|
sex
|
1
|
367
|
0.028
|
0.867
|
|
0.000
|
|
B
|
rank
|
2
|
367
|
114.313
|
0.000
|
|
0.384
|
|
B
|
sex:rank
|
2
|
367
|
0.061
|
0.940
|
|
0.000
|
Main effects
|
rank
|
discipline
|
Effect
|
DFn
|
DFd
|
F
|
p
|
p<.05
|
ges
|
|
AsstProf
|
A
|
sex
|
1
|
367
|
0.027
|
0.868
|
|
0.000
|
|
AssocProf
|
A
|
sex
|
1
|
367
|
0.627
|
0.429
|
|
0.002
|
|
Prof
|
A
|
sex
|
1
|
367
|
1.020
|
0.313
|
|
0.003
|
|
AsstProf
|
B
|
sex
|
1
|
367
|
0.008
|
0.929
|
|
0.000
|
|
AssocProf
|
B
|
sex
|
1
|
367
|
0.139
|
0.709
|
|
0.000
|
|
Prof
|
B
|
sex
|
1
|
367
|
0.003
|
0.953
|
|
0.000
|
ANCOVA
Let’s find out if years since doctorate (yrs.since.phd) and length of
service (yrs.service) can be significant as covariates.
There’s an interaction between years since doctorate and length of
service (as you can expect…)
Both are significant factors impacting salary. Other interactions were
not found significant.
|
Effect
|
DFn
|
DFd
|
F
|
p
|
p<.05
|
ges
|
|
yrs.since.phd
|
1
|
364
|
10.145
|
0.002
|
|
0.027
|
|
yrs.service
|
1
|
364
|
4.848
|
0.028
|
|
0.013
|
|
rank
|
2
|
364
|
25.933
|
0.000
|
|
0.125
|
|
discipline
|
1
|
364
|
28.410
|
0.000
|
|
0.072
|
|
sex
|
1
|
364
|
0.592
|
0.442
|
|
0.002
|
|
yrs.since.phd:yrs.service
|
1
|
364
|
14.813
|
0.000
|
|
0.039
|
|
rank:discipline
|
2
|
364
|
1.492
|
0.226
|
|
0.008
|
|
rank:sex
|
2
|
364
|
0.219
|
0.804
|
|
0.001
|
|
discipline:sex
|
1
|
364
|
0.457
|
0.500
|
|
0.001
|
|
rank:discipline:sex
|
2
|
364
|
0.531
|
0.589
|
|
0.003
|
MANOVA
MANOVA proved that years of service and years since Phd differ among
rank.
|
Parameter
|
Statistic
|
df
|
df_num
|
df_error
|
F
|
p
|
Eta2_partial
|
Eta2_partial_CI_low
|
Eta2_partial_CI_high
|
|
rank
|
0.49
|
2
|
4
|
752
|
61.88
|
< .001
|
0.25
|
[0.20, 1.00]
|
0.49
|
|
Residuals
|
|
376
|
|
|
|
|
|
|
|