Automaticity of Social Behavior – Does priming an elderly stereotype change walking speed?

In a provocative paper, Bargh, Chen and Burrows (1996) sought to test whether or not priming people with trait concepts would trigger trait-consisistent behavior. In one study, they primed participangs with either neutral words, or with words related to an elderly stereotype (e.g.; wise, stubborn, old). They then, unbeknownst to the participants, used a stopwatch to record how long it took the participants to walk down a hallway at the conclusion of an experiment. They predicted that participants primed with words related to the elderly would walk slower than those primed with neutral words.

In this WPA, we will analyze a fake dataset that corresponds to this experiment (in fact, just to prove to you that the dataset is fake, you can look at the code I used to generate the dataset here)

For this fake dataset, I’m also including a second dependent variable called donate. This variable represents whether or not each participant was willing to donate money to a charity for elderly homeless people. We’ll assume that the authors would have predicted that participants given the elderly prime would be more likely to donate to the charity than people given the neutral prime.

The data are located in a tab-delimited text file at http://nathanieldphillips.com/wp-content/uploads/2016/04/priming-5.txt

Datafile description

The datafile has 100 rows and 5 columns. Here are the columns

Data loading and preparation

A. Open your WPA.RProject (the one you created last week) and open a new script. Save the script with the name WPA5.R.

B. Using read.table(), load the tab-delimited text file containing the data into R from http://nathanieldphillips.com/wp-content/uploads/2016/04/priming-5.txt and assign it to a new object called elderly. Make sure to specify that the file is tab-delimited with the argument sep = \t and contains a header with the argument header = T.

C. Using write.table(), save the data as a text file called elderly.txt into the data folder in your working directory. That way you’ll always have access to the data even if it’s deleted from the website you downloaded it from.

Understand the data

D. Look at the first few rows of the dataframe with the head() function to make sure it looks ok.

E. Using the summary() function, look at summary statistics for each column in the dataframe. Make sure everything looks ok.

Please write your answers to all hypothesis test questions in proper American Pirate Association (APA) style!

Chi-square: X(df) = XXX, p = YYY

t-test: t(df) = XXX, p = YYY

correlation test: r = XXX, t(df) = YYY, p = ZZZZ

t-test(s)

  1. Was the overall time that people took to walk down the hallway significantly different from 10 seconds? Answer this with a one-sample t-test.

  2. Did men and women take a significantly different amount of time to walk down the hallway? Answer this with a two-sample t-test.

Correlation test(s)

  1. Was there a significant relationship between age and walking time? Answer this with a correlation test.

  2. Was there a significant relationship between age and a person’s favorite number? Answer this with a correlation test.

chi-square test(s)

  1. Did men and women differ in how likely they were to donate? Answer this with a two-sample chi-square test.

  2. Where there significantly different numbers of men versus women? Answer this with a one-sample chi-square test.

Goal point!!!!

Drawing

You figure out the test!

  1. Was the average age of the participants significantly different from 100?

  2. Were men significantly more or less likely to be assigned to the elderly prime condition compared to women?

  3. Was there a significant effect of the prime on walking time?

  4. Only for participants in the elderly prime condition, was there a relationship between age and walking time?

  5. Only for men younger than 22, was there a significant effect of the prime on the likelihood of donating?

  6. Only for women who made a donation, was there a significant effect of the prime on time?

More fun

  1. In words, interpret the p-value that you got in Question 11.

  2. Add a new column to the elderly dataframe called y.p that has a correlation of +1 with age. Confirm that the correlation is +1 using cor.test()

  3. Add a new column to the elderly dataframe called y.n that has a correlation of -1 with favorite.number. Confirm that the correlation is +1 using cor.test()

  4. The rnorm(n, mean, sd) function allows you to generate random data from a normal distribution with a specified mean and standard deviation. You can use the rnorm() function to add random noise to an existing variable. For example, the following code will generate (and plot), two variables y.1 and y.2 that are correlated with an independent variable x. y.1 is slightly positively correlated with x, and y.2 is highly negatively correlated with x.

# Create x, our independent variable
x <- rnorm(n = 100, mean = 10, sd = 1)

# Create y.1, slightly positively correlated with x

y.1 <- x + rnorm(n = 100, mean = 5, sd = 4)

# Create y.2, highly negatively correlated with x

y.2 <- -1 * x + rnorm(n = 100, mean = 13, sd = .3)

# Plot data

plot(1, 
     xlim = c(5, 15), 
     ylim = c(0, 25),
     ylab = "y",
     xlab = "x",
     type = "n")

points(x, y.1, pch = 21, bg = "red", col = "white")

points(x, y.2, pch = 21, bg = "blue", col = "white")


# Add labels

text(6, 15, paste("cor(x, y.1) = ", round(cor(x, y.1), 2), sep = ""))

text(6, 2.5, paste("cor(x, y.2) = ", round(cor(x, y.2), 2), sep = ""))

# Add legend

legend("topright", 
       legend = c("y.1", "y.2"), 
       pch = 16, 
       col = c("red", "blue"), 
       bty = "n")

Using the rnorm() function, add a new column to the elderly dataframe that has a correlation somewhere between 0.30 and 0.60 with age.

Something for you to do if you got this far…

  1. Create the following plot

    • Set up the plotting space and plot the data for one group using plot()
    • Add the points for the other group with points()
    • Add a legend with legend()
    • Add horizontal lines at the group means with abline()
    • Add the Mean = XX text with text() combined with the paste() function
    • Conduct the appropriate test using t.test() and save the result as a new object.
    • Add the APA conclusion with text() combined with the apa() function applied to your test object.