For this assignment, we are expected to run an ANOVA hypothesis test.
1. Firstly, it is necessary to combine the individual response data into three separate vectors to identify the ratings of the high, moderate, and low stress groups.
Once this is done, binding these vectors into a data frame using the as.data.frame and cbind function is the next step to structure these data into a single command. The stack function allows the data to be illustrated in a more readable and accessible manner before running the ANOVA function.
Using the Oneway.test function provides information on the F value, the numerator df, denominator df, and the p-value of the data under the assumption that the variances are equal.
Although my numbers are different from those posted, I chalk this up to a misinput of the data or a mistake on my end. Again, this is being done for the purpose of practicing this process and becoming familiar with conducting these tests.
No comments:
Post a Comment