Research Project (8): Add a Moderator in SAS

Introduction

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

CODE

code

Output

output2output3

Interpretation

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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s