In R please provide the code for the following steps (B iv,v,vi C i,ii,iii,iv) a. Load the coagulation data set (it is from the faraway library) b. Data Summaries & Assumption Check i. Use the names() function to identify the column names ii. How many rows of data are there? iii. Create a single graph with 4 boxplots on the same scale, one for the coagulation for each of the diets. Each boxplot should be a different color. Note: you can use the plot function for this task plot(colNameData~colNameCategory, data = dataset, col = color#1:color#2) colNameData is the name of the column in the data set that you want to create a boxplot for colNameCategory is the name of the column that you want to use to split the data into groups (so you want one boxplot for each category/value in this column) dataset is the name of the full dataset col=2:4 will give you 3 different colors (color indices are 1-8, then they repeat) iv. Create 4 different data frames, one for the data corresponding to each of the 4 factors. How many observations are there for each diet? Reminder: we can subset a data frame and select only the rows and columns we want by using dataName[rows, columns] You can use the which() function to specify a condition on the rows you want to keep If we want to select multiple columns by name, we can specify which ones we want using the following setup c(“col1Name”, “col2Name”) or c(col1Index, col2Index) v. Check the normality assumption for each subset by creating qq plots. Make sure each plot has an appropriate title. vi. What is the sample variance for each diet? Do you think that the assumption of common variance holds? Why or why not? How could you formally test this? c. Conduct a test using one way anova to check if the mean coagulation is the same for all 4 diets.    i. Define your null and alternative hypothesis    ii. Use the aov() function to conduct your test    iii. Use the summary() function to see the full details of the test.    iv. Report the degrees of freedom, sum of squares, p-value, and conclusion for your test

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter8: Working With Advanced Functions
Section: Chapter Questions
Problem 4.4CP
icon
Related questions
Question
In R please provide the code for the following steps (B iv,v,vi C i,ii,iii,iv)
a. Load the coagulation data set (it is from the faraway library)
b. Data Summaries & Assumption Check
i. Use the names() function to identify the column names
ii. How many rows of data are there?
iii. Create a single graph with 4 boxplots on the same scale, one for the coagulation
for each of the diets. Each boxplot should be a different color.
Note: you can use the plot function for this task
plot(colNameData~colNameCategory, data = dataset, col = color#1:color#2)
colNameData is the name of the column in the data set that you want to create
a boxplot for
colNameCategory is the name of the column that you want to use to split the
data into groups (so you want one boxplot for each category/value in this
column)
dataset is the name of the full dataset
col=2:4 will give you 3 different colors (color indices are 1-8, then they repeat)
iv. Create 4 different data frames, one for the data corresponding to each of the 4
factors. How many observations are there for each diet?
Reminder: we can subset a data frame and select only the rows and columns we
want by using dataName[rows, columns]
You can use the which() function to specify a condition on the rows you want to
keep
If we want to select multiple columns by name, we can specify which ones we
want using the following setup c(“col1Name”, “col2Name”) or c(col1Index,
col2Index)
v. Check the normality assumption for each subset by creating qq plots. Make
sure each plot has an appropriate title.
vi. What is the sample variance for each diet? Do you think that the assumption of
common variance holds? Why or why not? How could you formally test this?
c. Conduct a test using one way anova to check if the mean coagulation is the same for all 4 diets.
   i. Define your null and alternative hypothesis
   ii. Use the aov() function to conduct your test
   iii. Use the summary() function to see the full details of the test.
   iv. Report the degrees of freedom, sum of squares, p-value, and conclusion for your test
 
 

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning