A clinical psychologist thinks that depression may affect sleep. She decides to test this idea. She monitored nine depressed clients and eight non-depressed clients for three successive nights. The average number of hours slept by each subject during the last two nights is recorded. The data for the two conditions are stored in the following vectors. depressedClients <- c(7.1, 6.8, 6.7, 7.3, 7.5, 6.2, 6.9, 6.5, 7.2) normalClients <- c(8.2, 7.5, 7.7, 7.8, 8.0, 7.4, 7.3, 6.5) Assuming that the population variances for the two conditions are equal, conduct an appropriate tt-test to address the research question. What is your obtained pp-value? How do you interpret this pp-value? Attach R code if you want to receive potential partial marks in the case that your final answer is wrong.
A clinical psychologist thinks that depression may affect sleep. She decides to test this idea. She monitored nine depressed clients and eight non-depressed clients for three successive nights. The average number of hours slept by each subject during the last two nights is recorded. The data for the two conditions are stored in the following
depressedClients <- c(7.1, 6.8, 6.7, 7.3, 7.5, 6.2, 6.9, 6.5, 7.2)
normalClients <- c(8.2, 7.5, 7.7, 7.8, 8.0, 7.4, 7.3, 6.5)
Assuming that the population variances for the two conditions are equal, conduct an appropriate tt-test to address the research question. What is your obtained pp-value? How do you interpret this pp-value? Attach R code if you want to receive potential partial marks in the case that your final answer is wrong.
Step by step
Solved in 2 steps with 1 images