Question
--- 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}
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