use r code to complete statistic homework
STAT3119-10 HW#3 Due Date:2/4/2020 (Thursday) · Homework must be submitted to Assignment #3 on Blackboard · On the top right corner, write your name, date, and HW #. · All problem numbers refer to the problem from Dean, Voss, and Dragulijic (DVD) · Please summarize your results from statistical software such as R or SAS 1) (10 pts) (DVD #4.4) (L. Cai, T. Li, Nishant, and A. van der Kouwe, 1996) The experiment was run to compare the effects of auditory and visual cues on speed of response of a human subject. A personal computer was used to present a “stimulus” to a subject, and the reaction time required for the subject to press a key was monitored. The subject was warned that the stimulus was forthcoming by means of an auditory or a visual cue. The experimenters were interested in the effects on the subjects’ reaction time of the auditory and visual cues and also in different elapsed times between cue and stimulus. Thus, there were two different treatment factors: “cue stimulus” at two levels “auditory” or “visual,” and “elapsed time between cue and stimulus” at three levels “five,” “ten,” or “fifteen” seconds. This gave a total of six treatment combinations, which can be coded as: 1 = auditory, 5 sec 4 = visual, 5 sec 2 = auditory, 10 sec 5 = visual, 10 sec 3 = auditory, 15 sec 6 = visual, 15 sec The results of a pilot experiment, involving only one subject, are shown in Table 4.4. The reaction times were measured by the computer and are shown in seconds. The order of observation is shown in parentheses. (a) (2pts) Identify a set of contrasts that you would find particularly interesting in this experiment.(Hint: A comparison between the auditory treatments and the visual treatments might be of interest). These are your preplanned contrasts. (b) (2 pts) Plot the data. What does the plot suggest about the treatments? (c) (3 pts) Test the hypothesis that the treatments do not have different effects on the reaction time against the alternative hypothesis that they do have different effects. (d) (3 pts) Calculate a set of simultaneous 95% confidence intervals for your preplanned contrasts, using a method or methods of your choice. State your conclusions. Data is on the books website,