-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathassignment3_no1.R
More file actions
30 lines (17 loc) · 812 Bytes
/
assignment3_no1.R
File metadata and controls
30 lines (17 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Alex_Lantern_df <- read.csv("~/VICTORIA UNIVERSITY STUFF/Trimester 1, Year 1/Applied Stats (STAT 292)/Assignment 3/AlexandersLanternVersion3.csv")
#see data
head(Alex_Lantern_df)
#perform one way anova
data_anova <- aov(Distance ~ Pair, data = Alex_Lantern_df)
#display summary of anova
summary(data_anova)
#qq plot
qqnorm(residuals(data_anova), main = "Normal Q-Q Plot of residuals ANOVA on Pairs Effect Data")
qqline(residuals(data_anova), col = "red")
#box plot
boxplot(Distance ~ Pair, data = Alex_Lantern_df,
main = "Box Plot of Distance by Distance Measure (Pair)",
xlab = "Distance Measure (Pair)",
ylab = "Distance")
#Levene's test for Homogeneity of variance for distance by pair
leveneTest(Distance ~ Pair,data = data, center ="mean")