logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Angel MoralesLaw
(5/5)

817 Answers

Hire Me
expert
Carson FisherEnglish
(5/5)

864 Answers

Hire Me
expert
Faith WangScience
(5/5)

563 Answers

Hire Me
expert
Vijendra Kumar yadavMathematics
(/5)

826 Answers

Hire Me
R Programming
(5/5)

import a dataset from Excel that includes one categorical variable with 4 categories.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

In this assignment, you will use R Studio to

import a dataset from Excel that includes one categorical variable with 4 categories.

carry out a Chi-square goodness of fit test on the dataset.

make a grouped bar graph of the data.

 

Gastric and duodenal ulcers – painful sores in the lining of the upper digestive tract that can lead to internal bleeding or perforation of the tract – were shown, in the late 1980s, to be associated with infection by the bacterium Helicobacter pylori. This discovery prompted renewed interest in anecdotal observations made nearly 40 years earlier that ulcer susceptibility is influenced by a patient’s ABO blood type (= a scientific hypothesis).

 

On eClass you will find

 

1) an Excel file containing the ABO blood types of 181 randomly-selected ulcer patients (Rh blood type is not considered).

2) a recorded tutorial demonstrating the new R commands you will need – along with some of those you have already learned – to complete this assignment.

 

Download the Excel file and covert it (using “save as”) to .csv format. Import the .csv file into R Studio and conduct a Chi-square goodness of fit test to compare the frequencies of ABO blood types in this group of patients with ABO frequencies in the general population. For the latter, see Table 5.5-1 in your text (also shown on slide 22 of lecture 5). Once you have completed the analysis, make a grouped (paired) bar graph to compare blood type frequencies in ulcer patients with those in the general population.

 

Different versions of the Excel data file are available to different students. You must use the file that is visible to you when you log in to your own eClass account.

 

Your report, to be submitted to Turnitin, should be in .doc, .docx or .pdf format (with embedded fonts) and should include the following:

 

A cover page indicating the assignment, the course, the date of submission, your name and student number (1 mark)

A second page with the following:

1. A statement of the null and alternate hypotheses (H0 and HA) for your statistical test. (2 marks)

2. R output showing the results of the Chi Square test (appearing under the heading “Chi-squared test for given probabilities” in the console window) (2 marks)

3. A single-sentence conclusion with respect to the null hypothesis. (1 mark)

4. A single-sentence conclusion with respect to the scientific hypothesis (i.e., what can be concluded about the relationship between blood type and susceptibility to ulcers?) (2 marks)

5. A grouped bar graph copied and pasted from R studio. The graph should consist of 4 pairs of bars; each pair should show the frequency of an ABO blood type in ulcer patients and in the general population. Pairs should be arranged in decreasing order of frequency, with the most frequent blood type in the general population shown on the left, and the least frequent on the right. A legend to indicate which bars correspond with which groups should be included. See the recorded tutorial for an example. (6 marks)

 

A third page with all the R code you wrote and used to carry out the assignment, copied and pasted from the source window in R studio. (6 marks)

 

Total mark is out of 20.

 

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme