Question

In: Computer Science

do the following in r studio Perform the Analysis of Variance of the grade point average...

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?

Solutions

Expert Solution

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 ...


Related Solutions

pl use r studio to do that What is the most appropriate analysis to perform on...
pl use r studio to do that What is the most appropriate analysis to perform on the following data?   x<-c(8.1, 9.4, 9.9, 9.6, 10.7, 10.2, 10.4, 13.6, 15.5, 17.8) Y<-c(7.3, 8.6, 9.9, 9.6, 9.3, 9.2, 10.9, 10.7, 11.4, 16.1) Determine Spearman’s Rho coefficient (2dp) for the following data. x<-c(56,56,65,65,50,25,87,44,35) y<-c(87,91,85,91,75,28,122,66,58)
Perform the following tasks on R Studio/R Construct a function called conv3 which inputs a measurement...
Perform the following tasks on R Studio/R Construct a function called conv3 which inputs a measurement in centimeters and outputs the corresponding measurement in inches. However, if a negative value is entered as an input, no conversion of unit is done and an error message is printed instead.
R studio programing . can someone do an example of when to perform a one-sample wilcox...
R studio programing . can someone do an example of when to perform a one-sample wilcox signed-rank test. after, show modification to the previous function to perform a hypothesis comparing 2 population center with independent samples (mann-whitney test).
Do question E The following table contains the ACT scores and the GPA (grade point average)...
Do question E The following table contains the ACT scores and the GPA (grade point average) for eight college students. Grade point average is based on a four-point scale and has been rounded to one digit after the decimal. Student 1 2 3 4 5 6 7 8 GPA (y) 2.8 3.4 3.0 3.5 3.6 3.0 2.7 3.7 ACT (x) 21 24 26 27 29 25 25 30 We want to fit a straight-line model to relate GPA y to...
Perform the following tasks on R Studio Construct a function called conv1 which inputs a measurement...
Perform the following tasks on R Studio Construct a function called conv1 which inputs a measurement in centimeters and outputs the corresponding measurement in inches and construct another function called conv2 which inputs a measurement in centimeters and outputs the corresponding measurements in inches, feet, and meters
A multiple regression analysis between yearly income (y in thousands of dollars), college grade point average...
A multiple regression analysis between yearly income (y in thousands of dollars), college grade point average (X1), age of the individuals (X2 in years), and the gender of the individual (X3: 0 representing female and 1 representing male) was performed on a sample of 10 people, and the following results were obtained. Coefficients Standard of Error Intercept 4.0928 1.4400 x1 10.0230 1.6512 x2 0.1020 0.1225 x3 -4.4811 1.4400 ANOVA Source of Variation DF Sum of Squares Mean Square F Regression...
QUESTION 27 Company R has produced the following variance analysis report. If Company R has a...
QUESTION 27 Company R has produced the following variance analysis report. If Company R has a policy to investigate variances over 10% of the flexible budget, which variances should be investigated? Actual Flexible budget Budget Variance Price Variance Quantity Variance DM $78,580 $88,000 ($9,420) F $1,200 U ($10,620) F DL $123580 $145,000 ($21,420) F ($2,650) F ($18,770) F VOH $126,860 $119,000 $7,860 U ($5,560) F $2,300 U The direct materials quantity variance and the direct labor efficiency variance. The direct...
How do I input this in R studio 1. Combine the following lists into a matrix...
How do I input this in R studio 1. Combine the following lists into a matrix called animals, where each list becomes a row: Cats = 2,2,4 Dogs = 1,2,1 Cows = 30,35,41 2. Add column names of “Farm A”, Farm B”, and “Farm C”. 3. Transpose the rows and columns in animals and store the result to a matrix called farms. 4. Display the contents of farms.
A. To compute a student's Grade Point Average (GPA) for a term, the student's grades for...
A. To compute a student's Grade Point Average (GPA) for a term, the student's grades for each course are weighted by the number of credits for the course. Suppose a student had these grades: 3.6 in a 5 credit Math course 2.2 in a 2 credit Music course 2.6 in a 5 credit Chemistry course 3.1 in a 4 credit Journalism course What is the student's GPA for that term? Round to two decimal places. B) For a 4-unit class...
In a given year, the grade point average (GPA) of Statistics majors at the University of...
In a given year, the grade point average (GPA) of Statistics majors at the University of South Carolina is Normally distributed with and . Answer the following. ?=2.1?=0.25a. What GPA interval contains the middle 95% of all students? Sketch this.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT