Question: Cholesterol Data Set 9. This problem was modified from here. This study used a cross-over trial experiment to investigate whether eating oat bran lowered serum





Cholesterol Data Set 9. This problem was modified from here. This study used a cross-over trial experiment to investigate whether eating oat bran lowered serum cholesterol levels. Twelve individuals were randomly assigned a diet that included either oat bran or corn flakes. After two weeks on the initial diet, serum cholesterol (mmol/L) was measured and then participants were "crossed-over" to the other diet. After two-weeks on the second diet, cholesterol levels were measured again. Calculate the 98% confidence interval for the population difference in mean serum cholesterol for people eating oat bran and those eating cornflakes "by-hand" by coding the steps in R. Then use an R function to check your results. Report and interpret the interval in the context of the problem. (3 points)This assignment requires the iris, hair/eye color, and cholesterol data sets provided with the assignment. See the data description document for the iris and hair/eye color data sets for keys to coded variables and applicable units. Problems 1 4 use the iris data set. Problems 5 8 use the hair/eye color data set, problem 9 uses the cholesterol data set and problem 10 does not require a data set. Use the 1'" distribution for all problems involving means, even if the sample size is large. Use t . test for any problems with raw data for CIs about means. Use the custom functions in the template for C1s for means when you only have summary data. Make sure to interpret all condence intervals in the context of the problem. Be sure to add $conf.int at the end of built-in R function calls so that only CI output is shown. ### Problem 9 {r cholesteral CI} # Create the right subsets of data C.C
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
