library(ggplot2)
library(haven)
library(tidyverse)
wvs_usa <- read_sav("data/wvs-usa.sav")
pallant_cor <- read_sav("data/pallant-cor.sav")
First, working more with continuous variables From the (11) Pallant correlation survey:
Does optimism seem to be correlated with more self-esteem?
Is age correlated with self-control?
For both of these, report the Pearson r coefficient, and the whole relationship, the way I write it out in the class examples.
Next, think about OTHER tests (not necessarily just with continuous variables- think about the chi-square, the t-test, ANOVAS) that we’ve talked about to answer these questions:
Who has more stress, men or women?
Does marital status seem to impact levels of optimism?
Does marital status seem to impact levels of self-esteem?
Does having kids seem to affect your "total perceived stress?"
What are those differences, and are they significant? What kind of test did you use for this and why?
Write out the answers like I write out in the class examples…like you are writing a formal report.
You don’t need to do prepare this as a PowerPoint this week- just send in your answers as part of a Word doc in the Assignments tab! Do also include your SPSS output.
===
If you’ve got two categorical/ dichotomous variables (or you can reasonably and logically make them that dichotomous), you do a “Chi-Square Test.”
Men/ women and the question, “YES or NO- would you walk 5 miles through the snow for a bag of hot, salty, buttery popcorn?”
That’s a chi-square situation. And a heart risk.
If you’ve got two variables, and one is nominal/ dichotomous (2 values), and the other is continuous (like a scale), that’s an Independent samples t-test situation:
On a scale of “respect for the environment” where 3 = “less respect” and 10 = “more respect,” who respects the environment more- people in Poland or people in Latvia?
That’s a t-test situation.
If you’ve got two variables, and one is nominal with 3-5 values, and the other is continuous, that’s an ANOVA situation.
On a scale of “respect for the environment” where 3 = “less respect” and 10 = “more respect,” who respects the environment more- people in Poland, people in Latvia, or people in Argentina?
This calls for an ANOVA.
You can probably figure out the LAST situation we still have to cover— what if you have 2 continuous variables that you want to compare?
Yes, dear readers- this IS the time for a “correlation.”