Home › Forums › Applied Statistical Methods for Research › Optional Activity 1- Data Entry and Analysis with R- Lost at Qs 2& 3
Tagged: #mean #correlation #Rprogramming
- This topic has 1 reply, 2 voices, and was last updated 11 months, 2 weeks ago by
annakayeb.
-
AuthorPosts
-
-
June 17, 2025 at 5:57 pm #8713
JRamcha
ParticipantI opted not to do the SPSS s my interest lies in R currently. But open to try SPSS should I have to use it for some reason.
1.) What is the average perceived stress score among the students?
Figured this one easily with the ‘summary’ function, very quick and useful. 26.3For questions 2 and 3 I was absolutely lost as I have no idea on how to interpret these numbers. But generating them was pretty straight forward. I do hope at the end of this course I am more confident and knowledgeable in interpreting and understanding correlation and t-tests.
-
June 19, 2025 at 10:56 pm #8717
annakayeb
ParticipantHi, so currently in the same boat as you re:interest in R. The answer to Q2 is that males slept more on average and that data can be found in the last line of the t-test, which compares the sleep hours of males and female students. I cannot paste a snip but the line reads as follows:
sample estimates:
mean in group Female mean in group Male
5.166667 6.250000so we can see that males sleep more on average, as the mean in the male group is 6.25 hours vs the mean of 5.167 in the female group.
As for Q3, we see that the correlation using the PSS scores and Sleep Hours is generated as -0.9742207. After some research, here is what I found:
1. “An inverse correlation, or negative correlation, is a relationship between two variables where if the value of one increases, the value of the other decreases”
2. “The value of a correlation coefficient, which ranges from -1 to +1, indicates the strength and direction of a linear relationship between two variables. A value of 0 means no linear relationship, while values closer to -1 or +1 indicate a stronger linear relationship, either negative (inverse) or positive (direct), respectively.”This means that the value of the correlation suggests that there is a strong relationship between stress and sleep, and the sign of the correlation coefficient (negative) suggests that the relationship is inversely proportional.
Hope this helps!
-
-
AuthorPosts
- You must be logged in to reply to this topic.

I am very greatful for this opportunity to have done the course online. It was very meaningful to go through…
Due to the interactivity of the MOOC, we are currently redeveloping content for download. We will share this when it…
Greetings I would love to get a downloadable form of the material please. Either version would be appreciated
I have just finished and i am thrilled and thankful for the opportunity not only to achieve another excellent certificate…
Sounds great, thank you!