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
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
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
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
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps
Knowledge Booster
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.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education