Meat packaged in ambient air only has a shelf life of about two days before the quality of the meat begins to degrade due to microbial growth. A group of scientists performed an experiment to test alternative methods of meat packing to assess whether any method reduced microbial growth. The scientists applied four different packing methods to equally sized batches of meat, standard air, 100% CO2, vacuum packaging and a mix of different gases. They then counted the amount of baterial growth that occured per cm squared and took the natural log of that. They are interested in knowing if there is a difference in microbial growth between the four methods. They have decided to conduct their experiment at significance level α = 0.001. The results of their experiment are given in the csv file below. Use R to analyze the results of their experiment. If you can't use the button to download the csv file for any reason, the data is given in a table at the bottom of this page.
Copy of data in CSV file:
Which of the following is the correct null hypothesis?
μ = 0
Which of the following is the correct alternative hypothesis?
μ1 ≠ μ2, μ3 ≠ μ4
μ ≠ 0
μi ≠ μj, for some j ≠ i
μ1 ≠ μ2 ≠ μ3 ≠ μ4
You want to calculate the means for each group. Assume the data from the csv file was just read in and held in the variable meatdata. Which of the following would be a correct way to calculate the means for each group?
means <- colMeans(meatdata)
means <- rowMeans(meatdata)
means <- mean(meatdata)
means <- average(meatdata)
Compute the value of the grand mean,
Calculate the test statistic
Which of the following is the correct R function that can be used to find the p value of an F-distribution?
What is the p value?
Do we reject the null hypothesis?
Yes, we reject the null hypothesis
No, we fail to reject the null hypothesis
3) means = colMeans( meatdata) is correct
4)grand mean=8.970278 #obtain in code
5) test statistic value from Anova . # see in code
F value =0.514
Pf is R function to calculate p-value of f statistics.
7) p value from Anova
8) decision criteria for testing hypothesis is if p value less than alpha
Then reject null hypothesis
Here alpha = 0.001
Therefore accept null hypothesis (Ho)
That is all means are equal.
In other words there is no difference in microbial growth between the four treatments or methods.
Get Answers For Free
Most questions answered within 1 hours.