This post is for the week 4 assignment (the last one!) of the Coursera course Data Analysis Tools by Wesleyan University. It’s the 2nd course for the Data Analysis and Interpretation specialization.
In this post, I will add a third variable to the previous program: Research Project(7): Examine Correlation between Quantitative Variables with SAS
From the output tables above, we can see that the third variable H1DA10 is a moderator for the relationship between hours of watching TV and hours of playing games – the strength of the relationship is different across the different levels of moderator.
In the context, for those who are in the “English is not usually spoken at home” category, hours of watching TV and hours of playing games have a very weak linear relationship with a non-significant p-value, r=0.08617, p>0.05; for those who are in the “English is usually spoken at home” category, hours of watching TV and hours of playing games have a moderate positive linear relationship with a significant p-value, r=0.30011, p<.0001.