![]() ![]() Instead, you can perform a Tukey test with the function TukeyHSD(). The one-way ANOVA test does not inform which group has a different mean. You are confident to say there is a statistical difference between the groups, indicated by the “*”. The p-value is lower than the usual threshold of 0.05. Note that, it is advised to store the model and use the function summary() to get a better print of the results. You can answer our question: Is there any difference in the survival time between the Guinea pig, knowing the type of poison given. # use all the remaining variables as independent variables The syntax of the formula is: y ~ X1+ X2+.+Xn # X1 + X2 +. formula: The equation you want to estimate The basic syntax for an ANOVA test is: aov(formula, data) Step 4) You can run the one-way ANOVA test with the command aov. ggplot(df, aes(x = poison, y = time, fill = poison)) + Step 3) In step three, you can graphically check if there is a difference between the distribution. Step 2) You compute the mean and standard deviation. You should see three character values because you convert them in factor with the mutate verb. Step 1) You can check the level of the poison with the following code.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |