R | Assignment 4 2022

Assignment 4 2022

联系我们: 手动添加方式: 微信>添加朋友>企业微信联系人>13262280223 或者 QQ: 1483266981

Assignment 4

2022

Instructions

1) Please submit your solutions to this assignment in one PDF le in brightspace. Only one le will be accepted.

2) You can submit a PDF le more than once. However, only the last submission will be saved. If you want to modify your submitted assignment, that is ne as long as it is before the deadline.

3) Late submissions of the assignment are not going to be marked.

4) In the second part of the assignment, you must use R for all of your computations. Please use R markdown to write the solutions for this part.

5) You can submit hand written solutions for part one of the assignment, but please combine images of your hand-written solutions with the PDF produced with R markdown as one PDF. (See https: //imagetopdf.com/ as a possible solution to combine images as one PDF).

6) Deadline: Before 11:59 pm on Wednesday, July 20

7) You can work in groups of up to four members.

Part one

You can provide hand-written solutions for this part, but it is not necessary. You are welcome to try to write your solutions with R markdown. For Part One, only use R to compute quantiles and probabilities from a t or F distribution.

1. Fill in the missing values in the following ANOVA table for a completely randomized design with two factors crossed factors (say A and B). A has 2 levels and B has 3 levels. The number of experimental units per treatment n = 3.

p-value

(a) Test for the signi cance of the interaction e ects.

(b) Compute the partial eta square for each of the main e ects and for the interaction e ects.

(c) Based on the results from parts (a) and (b), is it reasonable to ignore the interactions in the description of the main e ects.

(d) Pool the ss for the interactions and the error, to obtain a table that corresponds to an additive model. With this modi ed table, test for the signi cance of the A main e ects and test for the signi cance of the B main e ects.

2. In a study of the e ect of applicant’s eye contact (factor A) and personnel o cer’s gender (factor B) on the personnel’s o cer’s assessment of likely job success of applicant, 10 male and 10 female personnel o cers were shown a front view photograph of an applicant’s face and were asked to give the person in the photograph a success rating on a scale of 0 (total failure) to 20 (outstanding success). Half of the o cers in each gender group were chosen at random to receive a version of the photograph in which there was not eye contact.

(a) Is the study experimental, observational, or mixed Why

(b) Identify all factors, factor levels, and factor level combinations.

(C) What type of study design is being implemented here

Part Two

Please R for all computations, and for building graphs in this part of the assignment. Note that we also want answers to some of this questions, that do not involve R. R will only be used for the computation, and to produce graphs. For some of these questions, the R output will not be su cient. You will need to interpret, to describe, and give conclusions.

3. Refer to Question 2. The data is in the le EyeContact .csv.

(a) Give an interaction plot. Does it appear that any factor e ects are present Explain.

(b) Give group statistics, i.e. give statistics for each cell (mean, std dev, and sample size). It the study

balanced Why

(c) Fit a two-Factor ANOVA Model with interactions and xed e ects. Give the corresponding ANOVA table. For each of the 3 types of e ects compute the partial eta squared. Which of the three types e ects are the larger e ects

(d) Test whether or not interaction e ects are present Give the observed value of the test statistic, the p-value, and the conclusion at α = 5%.

(e) Test whether or not eye contact main e ects are present Give the observed value of the test statistic, the p-value, and the conclusion at α = 5%.

(f) Test whether or not gender main e ects are present Give the observed value of the test statistic, the p-value, and the conclusion at α = 5%.

发表回复