With a independent variable of family involvement on 0-10 scale and a dependent variable of family enjoyment on a 0-10 scale. The correlation between the enjoyment of activities between involvement of activities is .59 which is a moderate positive correlation. This is shown significant on the 0.01 level.
For SPSS:
- Analyze
- Correlate
- Bivariate
- Move your independent and dependent over to the variables box
- *if your independent is not interval ratio you need to pick a variable that is
- Click ok
For R:
Input the following into the script file then highlight both lines and hit run
z<-y[is.na(y$v17)==0 & is.na(y$v18)==0,]
cor(z$v18,z$v17)