Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I'm so confused about how to use R to solve this problem. 2. On Blackboard under the Homework folder, you can find a zip file

I'm so confused about how to use R to solve this problem.

image text in transcribed
2. On Blackboard under the Homework folder, you can find a zip file birthweight.zip which contains a database birthweight smoking.csv for birth weight of infant (in grams) with an indicator equal to one if the mother smoked during pregnancy and zero, otherwise. A detailed description is given in the pdf file Data description. In this exercise, you will investigate the the relationship between a mother smoked during pregnancy (smoker) and birth weight of infant (birthweight). smoker takes value 1 is the mother smoked during pregnancy and 0 otherwise. (Hint: If you are looking for general methods to save plots in R, please look at the following webpage http://www.sthda.com/english/wiki/creating-and-saving-graphs-r-base-graphs. Do not use " Export" command ) (a) Load the dataset into R and call it data_weight. What command did you use? (Do not use the "import dataset" command in Rstudio.) (b) How many observations are there in your sample? How many variables? (c) Rename the variable birthweight to brght (d) Report the min, max and quartiles of brght. (e) Create a histogram for brght with density for Y-Axis instead of frequency. (f) Report the mean, standard deviation and skewness of brght. Would you say that this variable is normally distributed based on the value of skewness

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

Justice In A Global Economy Strategies For Home, Community, And World

Authors: Rebecca Todd Peters, Pamela K Brubaker, Laura A Stivers

1st Edition

0664229557, 9780664229559

More Books

Students also viewed these Economics questions