Chapter 10- SPSS
Click “Analyze” at the top and go all the way down to “Correlate”
Then click “Bivariate”
Move your independent and dependent variables into the “Variables” box.
Then click “Ok”
![](https://blogs.longwood.edu/timothycrowley/files/2023/04/image-2-1024x577.png)
The independent variable for the Pearson Correlation table above was enjoyment, measured on a scale from 1-10 (1-5 being less enjoyment, and 6-10 being more enjoyment). The dependent variable for the Pearson Correlation table above was engagement, measured on the same scale of 1-10 (1-5 being not engaged, and 6-10 being engaged). According to the results, there is a moderate positive correlation (r=.590) between the involvement and enjoyment of the family throughout the activities.
Chapter 10- RStudio
In the script box type in what is shown below.
z <- y[is.na(y$v17)==0 & is.na(y$v18)==0,]
cor(z$v17, z$v18)
Then highlight the syntax, as shown below.
![](https://blogs.longwood.edu/timothycrowley/files/2023/04/image-1.png)
Then click “Run” at the top right corner of the script box. Results should show what is shown below.
![](https://blogs.longwood.edu/timothycrowley/files/2023/04/image.png)
The independent variable for the Pearson Correlation table above was enjoyment, measured on a scale from 1-10 (1-5 being less enjoyment, and 6-10 being more enjoyment). The dependent variable for the Pearson Correlation table above was engagement, measured on the same scale of 1-10 (1-5 being not engaged, and 6-10 being engaged). According to the results, there is a moderate positive correlation (r=.5898) between the involvement and enjoyment of the family throughout the activities.