Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I really need help for this assignment. Please give me the answer in good handwriting! Thank you so much My job is solving modification of

I really need help for this assignment. Please give me the answer in good handwriting!

Thank you so much

My job is solving modification of problem 7 on page 195 in the textbook.

I will have to submit this assignment as Rmarkdown (A1_your_name.Rmd) and html (A1_your_name.html) files.

image text in transcribed

7. Access the data from url http://www.stat.berkeley.edu/users/statlabs/data/babies.data ore the information in an object named BABIES using the function read.tableO. A an description of the variables can be found at http://www.stat.berkeley.edu/users/statlabs/labs.html. These data are a subset from a much larger study dealing with child health and development. al Create a "clean" data set that removes subjects if any observations on the subject are unknown." Note that bwt, gestation, parity, age, height, weight, and smoke use values of 999, 999, 9, 99, 99, 999, and 9, respectively, to denote "unknown." Store the modified data set in an object named CLEAN. (b) Use the information in CLEAN to create a density histogram of the birth weights of babies whose mothers have never smoked (smoke-0) and another histogram placed directly below the first in the same graphics device for the birth weights of babies whose mthers currently smoke (smoke-1). Make the range of the a-axis 30 to 180 (ounces) for both histograms. Superimpose a density curve over each histogram. (c) Based on the histograms in (b), characterize the distribution of baby birth weight for both non-smoking and smoking mothers. (d) What is the mean weight difference between babies of smokers and non-smokers? Can you think of any reasons not to use the mean as a measure of center to compare birth weights in this problem? e) Create side-by-side boxplots to compare the birth weights of babies whose mothers never smoked and those who currently smoke. Use traditional graphics (boxplot)), attice graphics (bwplot )), and ggplot graphics to create the boxplots. 7. Access the data from url http://www.stat.berkeley.edu/users/statlabs/data/babies.data ore the information in an object named BABIES using the function read.tableO. A an description of the variables can be found at http://www.stat.berkeley.edu/users/statlabs/labs.html. These data are a subset from a much larger study dealing with child health and development. al Create a "clean" data set that removes subjects if any observations on the subject are unknown." Note that bwt, gestation, parity, age, height, weight, and smoke use values of 999, 999, 9, 99, 99, 999, and 9, respectively, to denote "unknown." Store the modified data set in an object named CLEAN. (b) Use the information in CLEAN to create a density histogram of the birth weights of babies whose mothers have never smoked (smoke-0) and another histogram placed directly below the first in the same graphics device for the birth weights of babies whose mthers currently smoke (smoke-1). Make the range of the a-axis 30 to 180 (ounces) for both histograms. Superimpose a density curve over each histogram. (c) Based on the histograms in (b), characterize the distribution of baby birth weight for both non-smoking and smoking mothers. (d) What is the mean weight difference between babies of smokers and non-smokers? Can you think of any reasons not to use the mean as a measure of center to compare birth weights in this problem? e) Create side-by-side boxplots to compare the birth weights of babies whose mothers never smoked and those who currently smoke. Use traditional graphics (boxplot)), attice graphics (bwplot )), and ggplot graphics to create the boxplots

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions

Question

9:37

Answered: 1 week ago