Question
I have zero understanding of using t tests in R Studio...Some of this data is not numerical R Studio... output: word_document --- ```{r setup, include=FALSE}
I have zero understanding of using t tests in R Studio...Some of this data is not numerical
R Studio...
output: word_document ---
```{r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE) ``` ## Set Up the Environment This code will set up your environment to complete the assignment. Each data set will be use in a homework problem. ```{r} install.packages("openintro") library(openintro) #data for assignment jury<-jury diabetes2<-diabetes2 run17<-run17 textbooks<-textbooks ncbirths<-ncbirths ``` ## 1. Jury Data Consider a random sample of 275 jurors in a small county. Jurors identified their racial group in the data set: jury. We would like to determine if these jurors are racially representative of the population. If the jury is representative of the populations, then the proportions in the sample should roughly reflect the population of eligible jurors (registered voters). In this county, 72% of registered voters are white, 7% are black, 12% are Hispanic and 9% are other. Test whether the sample data fits this pattern.
a. Examine the data. Include any code here you want that allows you to understand the data your are working with. ```{r} ``` b. State which test is appropriate for the data. [your answer here] c. Write code and run the test. ```{r} ``` d. State the hypotheses for the test. [your answer here] e. State the conclusion for the test. [your answer here]
## 2. diabetes2 data An experiment was conducted evaluating three treatments for Type 2 Diabetes in patients aged 10-17 who were being treated with metformin. The three treatments considered were continued treatment with metformin (met), treatment with metformin combined with rosiglitazone (rosi), or a lifestyle intervention program (lifestyle). Each patient had a primary outcome, which was either lacked glycemic control (failure) or did not lack that control (success). Test to see if there is a relationship between treatment and outcomes. a. Examine the data. Include any code here you want that allows you to understand the data your are working with. ```{r} ``` b. State which test is appropriate for the data. [your answer here] c. Write code and run the test. ```{r} ``` d. State the hypotheses for the test. [your answer here] e. State the conclusion for the test. [your answer here]
## 3. run17 data Is the typical US runner getting faster or slower over time? We consider this question in the context of the Cherry Blossom Race, which is a 10-mile race in Washington, DC each spring. The average time for all runners who finished the Cherry Blossom Race in 2006 was 93.29 minutes (93 minutes and 17 seconds). We want to determine using data from 100 participants in the 2017 Cherry Blossom Race whether runners in this race are faster or slower than the average time from the 2006 race.
a. Examine the data. Include any code here you want that allows you to understand the data your are working with. ```{r} ``` b. State which test is appropriate for the data. [your answer here] c. Write code and run the test. ```{r} ``` d. State the hypotheses for the test. [your answer here] e. State the conclusion for the test. [your answer here]
## 4. textbooks data Consider the data set "textbook" that contains textbooks that are required for different courses at UCLA. We want to see if there is a significant difference in the UCLA campus bookstore price (ucla_new) and amzaon's prize (amazon_new) for each book?
a. Examine the data. Include any code here you want that allows you to understand the data your are working with. ```{r} ``` b. State which test is appropriate for the data. [your answer here] c. Write code and run the test. ```{r} ``` d. State the hypotheses for the test. [your answer here] e. State the conclusion for the test. [your answer here]
## 5. ncbirths data A data set called ncbirths represents a random sample of 150 cases of mothers and their new borns in North Caroline over a year. We are particularly interested in two variables: weight and smoke. The weight variable represents the weights of newborns and the smoke variable describes which mothers smoked during pregnancy. We would like to know, is there convincing evidence that newborns from mothers who smoke have a different birth weight than newborns from mothers who don't smoke?
a. Examine the data. Include any code here you want that allows you to understand the data your are working with. ```{r} ``` b. State which test is appropriate for the data. [your answer here] c. Write code and run the test. ```{r} ``` d. State the hypotheses for the test. [your answer here] e. State the conclusion for the test. [your answer here]
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