Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

--- title: ABS350 Spring 2023b Final Problem Set author: '----' date: m/d/y header-includes: - usepackage{color} - usepackage[most]{tcolorbox} - usepackage{tikz} - definecolor{aliceblue}{rgb}{0.96, 0.98, 1.0} - ewtcolorbox{answer}[1]{

---

title: "ABS350 Spring 2023b Final Problem Set"

author: '----'

date: "m/d/y"

header-includes:

- \usepackage{color}

- \usepackage[most]{tcolorbox}

- \usepackage{tikz}

- \definecolor{aliceblue}{rgb}{0.96, 0.98, 1.0}

- ewtcolorbox{answer}[1]{ enhanced, colback=aliceblue, colframe=blue, coltext=black, boxsep=3pt,breakable, arc=4pt,coltitle=black, boxed title style={colback=white}, attach boxed title to top right={xshift=14mm, yshift=-7.5mm,yshifttext=-1mm}, title={\large \,\,\, /{#1}}}

output:

pdf_document:

fig_width: 5

fig_height: 3.5

word_document: default

geometry: margin=1in

fontsize: 11pt

---

```{r setup, include=FALSE}

knitr::opts_chunk$set(echo = TRUE, eval=TRUE)

```

Please answer the following questions on your own. \\

In the r setup above, do not remove the `eval=TRUE option` - this way I can see both the code you ran and your output in your pdf. Please include any R code you used for calculations you needed to do. Problems are worth 3 points each - there is thus an opportunity for up to 114 points on this problem set.

**North Carolina Births**

In 2004, the state of North Carolina released to the public a large data set containing information on births recorded in this state. This data set has been of interest to medical researchers who are studying the relation between habits and practices of expectant mothers and the birth of their children. This is a random sample of 200 cases from this data set.

Variables

* `fage` - Father's age in years.

* `mage` - Mother's age in years.

* `mature` - Maturity status of mother.

* `weeks` - Length of pregnancy in weeks.

* `premie` - Whether the birth was classified as premature (premie) or full-term.

* `visits` - Number of hospital visits during pregnancy.

* `gained` - Weight gained by mother during pregnancy in pounds.

* `weight` - Weight of the baby at birth in pounds.

* `lowbirthweight` - Whether baby was classified as low birthweight (low) or not (not low).

* `gender` - Gender of the baby, female or male.

* `habit` - Status of the mother as a nonsmoker or a smoker.

* `marital` - Whether mother is married or not married at birth.

* `whitemom` - Whether mom is white or not white.

```{r echo=FALSE}

load("nc_birthss2023b.Rdata")

```

1. For numerical variables, calculate the mean and standard deviation. Report these sample statistics.

:::: {.answer data-latex="{3}"}

```{r}

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed
Smoking Habits of Mothers Smoking Number of Mothers Habit | Non-Smoker X | Occasional XXX Smoker | Regular X X Smoker\fMean: Mean = 1+243+4+5+6+7+849 45 = 5 9 9 Now, the standard deviation: Standard Deviation = 21(@;-Mean)? Standard Deviation = (1 5)24 (2 5)2 +... |(9 5)2 9 Standard Deviation = Standard Deviation = 32 9 Standard Deviation ~ 1.8856\f

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

Essential Calculus Early Transcendental Functions

Authors: Ron Larson, Robert P. Hostetler, Bruce H. Edwards

1st Edition

618879188, 618879182, 978-0618879182

More Books

Students also viewed these Mathematics questions

Question

Write a short "employee Code of Conduct".

Answered: 1 week ago