Module 8 assignment

 ANOVA test 

stress <- factor(rep(c("High","Moderate","Low"), each=6)) 

reaction <- c(10,9,8,9,10,8, 8,10,6,7,8,8, 4,6,6,4,2,2) 

anova <- aov(reaction ~ stress) 

summary(anova) 

The results showed an F value of approximately 9.71 and a p value of 0.0023. Since the p value was less than 0.05, it could be taken to mean that there was a statistically significant difference in reaction times for the groups of stress. This does not, mean that it could be interpreted that stress was influencing how people reacted to this drug. The greater the stress, the slower the reaction was. 

Zelazo 

library(ISwR) 

data("zelazo") 

zelazo_df <- stack(zelazo) 

anova2 <- aov(values ~ ind, data=zelazo_df) 

summary(anova2) 

The ANOVA with values given by the Zelazo material show an F value of about 1.78 and a p-value of .175. This is greater than .05 so that there is no real difference between the four groups. There is so much difference between the means that any difference between them might be due to chance and not have produced any real effect. 

Summary 

In fact the drug and shock tests show a positive correlation between the stress and the time of reaction, that is, that as the amount of stress on the subject increases, the time of reaction with that subject is increased. On the other hand the results of the Zelazo test did not show very much at all. The differences in those groups were so little that they are of 

 

Comments

Popular posts from this blog

Module 10

basic graph

Module 3 assignemnt