Question

Download the file CCCdatahw3.xlsx (or CCdatahw3v2.xlsx). This is a partially faked dataset derived from real medical...

Download the file CCCdatahw3.xlsx (or CCdatahw3v2.xlsx). This is a partially faked dataset derived from real medical records. https://drive.google.com/file/d/1zYrAeyNbB6GTDG7y7MpUvm_iQ9ciCIcE/view

A variety of variables are used including some demographic data and two variables on smoking and diabetes. You can see that the last two variables “smoking” and “diabetes” are simplified variables recording a “1” if any mention was made and a “0” if not. You will just be using the last two columns, “smoking” and “diabetes.” Please use this file to complete the following questions. Show your work. You will likely need to use Excel. a) What is the size of the sample? b) What percentage of the sample reported smoking? c) What percentage of the sample reported having diabetes? What percentage of reported smokers also report having diabetes? d) What percentage of people who report having diabetes also report smoking? e) What percentage of nonsmokers also have diabetes? f) Does smoking appear associated with diabetes? Explain your reasoning. g) Does the data allow us to conclude smoking causes diabetes? Explain.

Homework Answers

Answer #1

a) Sample size

Size of the sample can be calculated using the "COUNT" function in Excel, it will count the number of non-missing values. Therefore, using the count funtion on the vaiable ID will give us the estimate of the sample size. In any of the cell type =COUNT(A2:A1001). The above function results in 1000. Therefore the sample size is 1000.

b) Percentage of Smoking

Using "COUNTIF" function the number of sample that reported smoking can be identified. Inputs for the function are range (The data range of smoking) and the code for smoking which is "1". Therefore in any of the empty cell type =COUNTIF(H2:H1001,1). The function will result is 127. Hence, the percentage is calculated as 127/1000*100 = 12.7%

c)

Sample reported having diabetes

Using "COUNTIF" function the number of sample that reported diabetes can be identified. Inputs for the function are range (The data range of smoking) and the code for diabetes which is "1". Therefore in any of the empty cell type =COUNTIF(I2:I1001,1). The function will result is 37. Hence, the percentage is calculated as 37/1000*100 = 3.7%

Percentage of people who report diabetes also report smoking

A new variable is calculated if smoking=1 and diabetes=1 using the "AND" function. In a new column type =AND(H2=1,I2=1). The same function is used for all other rows. The result will be "TRUE" if the diabetes=1 and smoking = 1, else the result will show "FALSE". Therefore, counting the number of "TRUE" will give count of number of people who report diabetes also reporting smoking. Using the COUNTIF function number of TRUE values are identfied. The result will be 20(Use the function COUNTIF on the new column, =COUNTIF(J2:J1001,"TRUE")). Therefore, there are 20 people who reported diabetes also report smoking.

Percentage of reported smokers also report having diabetes:

Number of reported Smokers = 127.

Number of Diabetes and smoker= 20.

Therefore, percentage of reported smokers also report having diabetes is calculated as 20/127 = 0.1575 = 15.75%

d) Percentage of people who report having diabetes also report smoking

Number of reported diabetes= 37.

Number of Diabetes and smoker= 20.

Therefore, percentage of people who report having diabetes also report smoking is calculated as 20/37 = 0.5405 = 54.05%

e) Percentage of nonsmokers also have diabetes

Number of Non-smokers = 1000-127 = 873

Number of Nonsmokers and diabetes = Number of diabetes - Number of smokers and diabetes = 37 - 20 = 17.

Therefore, percentage of non-smokers also have diabetes = 17/873 = 1.95%

f) Association of smoking with diabetes:

Tobacco use can increase blood sugar levels and lead to insulin resistance. The more you smoke, the greater your risk of diabetes. Hence, once can assume that there will be an associaton of smoking with diabetes.

g) Association of smoking with diabetes via data:

To check the association the two percentages has to be comapred.

i. Percentage of reported smokers also report having diabetes = 15.75%

ii. Percentage of Non-Smokers also have diabetes = 1.95%

The difference between the reporting of diabetes in smokers and non-smokers = 13.8%. Hence, it appears that the smoking is associated with diabetes.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
As you saw from the lab PowerPoint slides last week, you will be doing a research...
As you saw from the lab PowerPoint slides last week, you will be doing a research study looking at ‘Aggression Priming” for your first paper. For this week’s discussion, I want you to discuss with your group what you think this study is about. What is the hypothesis? What theory does it come from? What do you predict will happen (do you expect something different than the hypothesis in the researcher instructions? If so, what and why?)? Do you think...
READ THE CASE STUDY AND ANSWER THE FOLLOWING QUESTIONS 2nd CASE: An Unexplained Death A 65-year-old...
READ THE CASE STUDY AND ANSWER THE FOLLOWING QUESTIONS 2nd CASE: An Unexplained Death A 65-year-old man of Scandinavian descent was rushed to the Emergency Room of your local hospital after a family member discovered him unconscious in his home. The woman who dialed “911” told the dispatcher that the man, her brother, was the local librarian of the past 10 years and had no spouse or children. She reported that they had spoken the day before, and he had...
What tools could AA leaders have used to increase their awareness of internal and external issues?...
What tools could AA leaders have used to increase their awareness of internal and external issues? ???ALASKA AIRLINES: NAVIGATING CHANGE In the autumn of 2007, Alaska Airlines executives adjourned at the end of a long and stressful day in the midst of a multi-day strategic planning session. Most headed outside to relax, unwind and enjoy a bonfire on the shore of Semiahmoo Spit, outside the meeting venue in Blaine, a seaport town in northwest Washington state. Meanwhile, several members of...
In February 2012, the Pepsi Next product was launched into the US market. This case study...
In February 2012, the Pepsi Next product was launched into the US market. This case study provides students with an interesting insight into PepsiCo’s new product process and some of the challenging decisions that they faced along the way. Pepsi Next Case Study Introduction Pepsi Next was launched by PepsiCo into the US market in February 2012, and has since been rolled out to various international markets (for instance, it was launched in Australia in September 2012). The new product...