Question: in R-Studio (25 points) The ChickWeight dataframe has 578 rows and 4 columns from an experiment on the effect of diet on early growth of
in R-Studio

(25 points) The ChickWeight dataframe has 578 rows and 4 columns from an experiment on the effect of diet on early growth of chicks. (a) (2 points) Load the dataframe and show its data summary. (b) (2 points) Get all rows of Chicken data in group diet 4 (i.e. Chick 4) and Call this data frame Chicken. Group 4. (c) (2 points) Get a vector called Chicken.diff with the absolute difference between 'weight' and the average weight. (d) (2 points) Add the the vector Chicken.diff to the original dataset and create a new dataframe called NewChicken. (e) (2 points) Find the chickens which have the closest weight to the average weight. (f) (3 points) Use dplyr package to filter for all data of Chick group 10 with a "Weight of smaller than 100. (Hint: Install the dplyr package if not found on your device.) (g) (3 points) Get a data frame of all data of Chicken group 5 with a "weight" of greater than 100, but without the last column Diet in the data frame? (h) (2 points) Get the row IDs of the rows matching the two filtering criteria pro- vided in (f). (i) (2 points) Find the number of groups in the ChickWeight dataframe? (j) (5 points) Do you think that the means of these groups are similar or different? Use the one-way ANOVA technique to justify your answer. (25 points) The ChickWeight dataframe has 578 rows and 4 columns from an experiment on the effect of diet on early growth of chicks. (a) (2 points) Load the dataframe and show its data summary. (b) (2 points) Get all rows of Chicken data in group diet 4 (i.e. Chick 4) and Call this data frame Chicken. Group 4. (c) (2 points) Get a vector called Chicken.diff with the absolute difference between 'weight' and the average weight. (d) (2 points) Add the the vector Chicken.diff to the original dataset and create a new dataframe called NewChicken. (e) (2 points) Find the chickens which have the closest weight to the average weight. (f) (3 points) Use dplyr package to filter for all data of Chick group 10 with a "Weight of smaller than 100. (Hint: Install the dplyr package if not found on your device.) (g) (3 points) Get a data frame of all data of Chicken group 5 with a "weight" of greater than 100, but without the last column Diet in the data frame? (h) (2 points) Get the row IDs of the rows matching the two filtering criteria pro- vided in (f). (i) (2 points) Find the number of groups in the ChickWeight dataframe? (j) (5 points) Do you think that the means of these groups are similar or different? Use the one-way ANOVA technique to justify your
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
