Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Complete the following steps: Use R to analyze the Birth data set. This data set is in the Nutshell library. For each step, show the
Complete the following steps:
- Use R to analyze theBirthdata set. This data set is in theNutshelllibrary.
- For each step, show the R commands and the results, and discuss your results.
- First, list the data for the first 5 births.
- Next, show a bar chart of the frequencies of births according to the day of the week of the birth. What do you conclude from the bar chart?
- Then, obtain frequencies for two-way classifications of birth according to the day of the week and the method of delivery. Show the results, and discuss your findings.
- Now, use lattice (trellis) graphs (R package lattice) to condition density histograms on the values of a third variable. The variable for multiple births and the method of delivery are conditioning variables. Separate the histogram of birth weight according to these variables. Show your graphs and what you concluded.
- Next, box plot of birth weight against the Apgar score and box plots of birth weight by day of week of delivery. Provide R commands and graphs, and discuss your results.
- Calculate the average birth weight as a function of multiple births for males and females separately.
- Use thetapplyfunction, and for missing values, use "option nz.rm=TRUE."
- Show the results in a bar chart, and discuss them.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started