In: Computer Science
do the following in r studio Perform the Analysis of Variance of the grade point average of the Design of Experiments subject . According to the following information. trat <- c (1,1,1,2,2,2,3,3,3,4,4,4) y <- c (7.66,6.98,7.80,5.26,5.44,5.80,7.41,7.33,7.04,3.51,2.91,3.66) trat <- as. factor (trat) data <- cbind (trat, y) y "is the dependent variable (grade point average) and the treatment is the variable" trat "is the type of test applied. Perform the following analyzes on the provided data:
1. Define the proposed experiment and identify the response variables, the factor, and the factor levels.
2. Perform exploratory data analysis
3. Indicate if there are outliers and if these would have an effect on the proposed experiment
4. Show graphically whether or not there is a difference of means for the treatment
5. Perform the ANOVA and write the null and alternative hypotheses, indicate the value of the statistic Contrast F and the critical value of F under the null hypothesis
6. Indicate the value of the mean square of the treatment, mean square of the error and square half total
7. Compare paired means and indicate whether there is a relationship between treatment and answer (Tukey's test)
8. Represent graphically the differences found and interpret the results 9. Based on your experiment, what would your conclusions be?
trat <- c (1,1,1,2,2,2,3,3,3,4,4,4)
trat
y <- c
(7.66,6.98,7.80,5.26,5.44,5.80,7.41,7.33,7.04,3.51,2.91,3.66)
y
trat <- as.factor(trat)
trat
data <- cbind (trat, y)
data
_____________
output in console -
trat <- c (1,1,1,2,2,2,3,3,3,4,4,4)
> trat
[1] 1 1 1 2 2 2 3 3 3 4 4 4
> y <- c
(7.66,6.98,7.80,5.26,5.44,5.80,7.41,7.33,7.04,3.51,2.91,3.66)
> y
[1] 7.66 6.98 7.80 5.26 5.44 5.80 7.41 7.33 7.04 3.51 2.91
3.66
> trat <- as. factor (trat)
Error: unexpected symbol in "trat <- as. factor"
> trat <- as.factor(trat)
> trat
[1] 1 1 1 2 2 2 3 3 3 4 4 4
Levels: 1 2 3 4
> data <- cbind (trat, y)
> data
trat y
[1,] 1 7.66
[2,] 1 6.98
[3,] 1 7.80
[4,] 2 5.26
[5,] 2 5.44
[6,] 2 5.80
[7,] 3 7.41
[8,] 3 7.33
[9,] 3 7.04
[10,] 4 3.51
[11,] 4 2.91
[12,] 4 3.66
Due to some urgent work i am not going to fully solve it right now, give me sometime to update the solution thanks in advance ...