Methods
Power Analysis
The goal is to replicate the main finding, that there was a significant interaction between task (fun and self-control) and role model (past or futur self).
The original authors used a MANOVA when looking at one outcome variable (the number of trials completed) and two factors each with two levels (role model – past or future self; task – fun or self-control). Given there is one outcome variable, I to use a two-way ANOVA, which I believe is a more appropriate statistical test to use.
In terms of effect size, the original effect size was eta squared = 0.05, or cohen’s f of 0.23 (converted partial eta squared to cohen’s f using G Power; assumed that partial eta squared and eta squared were equivalent in this case). To achieve an effect size of partial eta squared of 0.05, we would need 152 participants (80% power), 202 participants (90% power), or 249 participants (95% power). The power calculations are below. 80% power is shown below. This sample size is large, given that in my pilot participants took ~ 8 minutes; achieving a power of 80%, we would need to spend ~ $130 (e.g. $0.85 per participant).

Planned Sample
I plan to recruit 150 participants from Amazon’s Mechanical Turk. This will give approximately 80% power (79.7%). There will be no specific recruitment parameters in terms of demographics, though I will assess participant demographics.
Materials
Participants were presented the same materials from the original study, namely 10 different photos in which participants were asked to either enjoy the photos (“fun” task) or do some computational task (“self-control” task). See a screenshot from the original paper.

Procedure
The following procedures from the original article were followed precisely. There are some exceptions in the questions asked or how they were asked; see “Differences from Original Study” section.
Excerpts from paper:
Participants were randomly assigned into a 2 (task: fun or self-control) x 2 (role model: past or future self) between-subjects design in a study about motivation. For the main part, all participants completed a slideshow task. Participants were told they would view a series of nature photos one by one, and all saw the same photos in the same order. Under each, they were given a choice to “Show me another one!” or “End this slideshow task; move me to the rest of the survey.” It was made clear that participants could go as long as they wished without affecting payment. They were unaware of a ceiling, but the slideshow was capped at 10 before ending automatically (even if they clicked “Show me another one!” at the 10th photo). There were five wildlife photos and five still-life photos.
Task manipulation. The purpose of the task, however, varied across participants (see Table 1). Some participants thought the task was about enjoyment (fun condition). Specifically, they were instructed: “This task is somewhat boring, but it is designed to assess your capacity for emotionality (i.e., feelings and enjoyment; being reactive). The more photos you choose to click through, the higher your ‘fun’ score.” They were asked to simply look at each photo (e.g., “Look at the stripes on this tiger!”). Under each photo was a text box in which they were instructed to type “ok” after they had “sufficiently enjoyed” it, and under the text box was the choice (i.e., to see another photo or to end the slideshow). The target measure was how many photos participants clicked through before opting out of the slideshow. Other participants thought the task was about critical thinking (self-control condition). They were instructed: “This task is somewhat boring, but it is designed to assess your capacity for rationality (i.e., concentration and thinking skills; being proactive). The more photos you choose to click through, the higher your ‘self-control’ score.” They were asked to make a difficult calculation about the contents in the photo (e.g., “How many stripes do you see on this tiger?”). Under the photo was a text box in which they were instructed to type their actual answer, and under the text box was the choice. Again, the target measure was how many photos they viewed before choosing to move on. Otherwise, the actual slideshow was identical for all participants.
Role model manipulation. Critically, before knowing about or completing the slideshow task, participants completed the very first part of the study. They were asked to reflect on the positive attributes of either their “past self: who you recall being over the last few years,” or their “future self: who you imagine being over the next few years.” To get into the mind-set, they were asked to write open-ended responses to this prompt: “What do you think are the benefits to feeling connected to your future (past)? When might it actually be good for you to “act like” your future self (past self)? If you brought to mind your future self (past self) as a role model for motivating yourself today, in what types of tasks would that help? What, exactly, is your future self (past self) good at?” After writing, participants were instructed to keep this other self in mind as a guide in performing subsequent tasks in the study (e.g., “Think about what she would motivate you to do, for better or for worse”). At that point, participants were informed about the slideshow task and completed it as described. Finally, at the end of the entire study, participants rated how difficult it was to imagine their other self (1 = very easy to imagine, to 7 = very difficult to imagine), the detail level of the mental image of their other self (1 = not at all detailed, to 7 = very detailed), and how far away their other self seemed (1 = they feel very close to me now, to 7 = they feel very far from me now).
Working Replication Links:
Link: https://stanforduniversity.qualtrics.com/jfe/form/SV_e54EyBPR54x3vsF
Analysis Plan
Overview:
The key analysis of interest is to replicate the significant interaction by task and role model, such that participants completed more trials in the fun task when role modeling their past self and completed more trials in the self-control task when role modeling their future self.
Importantly, as noted earlier, I plan to analyze the results using a two-way ANOVA. I believe this is the correct statistical test to use (not a MANOVA, as the original paper used) as the goal of the analysis is to look at the interaction between the two categorical factors, task (fun or self-control) and role model (past or future self), on the number of trials completed (see here for reference: http://www.statsmakemecry.com/smmctheblog/stats-soup-anova-ancova-manova-mancova).
Relevant Excerpts from Paper:
“One participant reported confusion because the photos did not load properly. Excluding this participant does not meaningfully affect the results, so the entire sample was retained. Data were submitted to a univariate MANOVA, with Task and Role Model as fixed factors. Number of trials completed before quitting was the dependent variable. … Importantly, this effect was qualified by a predicted interaction with role model, F(1, 220) = 12.45, p < .001, eta squared = .05 (see Figure 3). For the fun version of the task, participants motivated by their past self completed more trials (M = 6.90, SD = 3.57) than did participants motivated by their future self (M = 5.03, SD = 3.43), F(1, 220) = 9.95, p = .002, eta squared = .04. However, for the self-control version of the task, future-motivated participants (M = 4.63, SD = 2.97) completed more trials than past-motivated participants (M = 3.45, SD = 2.74), F(1, 220) = 3.52, p = .06, eta squared = .016. … Importantly, when entering these items as covariates in the model, all results were essentially identical: The critical interaction remained significant, F(1, 217) = 11.45, p = .001, eta squared = .05, as did the reported contrasts for the fun task, F(1, 217) = 8.98, p = .003, eta squared = .04, and for the self-control task, F(1, 217) = 3.35, p = .068, eta squared = .015.”
Analysis Steps
Exclusion: No participants will be excluded in the confirmatory analysis as none were excluded in the original paper (one person in the original study reported confusion with photos loading; however they were not excluded in the original paper as excluding did not change results).
Data Cleaning: Summarize the data so that for each participant, their task (fun or self-control), role model (past or future self), number of trials completed (need to summarize), and their responses for the three covariates (difficulty, detail, distance) are included as separate columns. The number of trials will be a range from 1 to 10, and is equal to the number of times the participant selected the option “show me another one” or “end this slideshow”; as O’Brien (2015) notes, this is equal to the number of photos the participant viewed before choosing to end the slideshow. Note that I have clarified this after submitting my pre-registration (there was a typo in which I described that the range would be from 0 to 10, and it would be equal to the number of times “show me another one” was selected).
Analysis: Conduct a two-way anova such that find the main effect of task, the main effect of role model, and their interaction on the number of trials. Then, conduct the same two-way anova separately for each of the three covariates: difficulty, detail, and distance from the self that was role modeled.
Differences from Original Study
There are several slight differences from the original study, as noted below. Since all are minor, none are expected to make a difference on the two confirmatory analyses.
Sample differences
None intended: We are recruiting Amazon Mechanical Turkers, and so there should be the same demographic distribution (e.g. original study had 57.1% women; 79.0% White; M age = 34.09).
Setting differences
None to slight: The setting is a Qualtrics survey hosted on Amazon’s Mechanical Turk. The one slight difference is that we are paying participants $0.85 for completing the task, whereas the original study paid participants $1.00 per hit.
Procedure differences
- New Questions
Participants were asked a new control variable: how far away their other self seemed during the task (1 = they felt very close to me then, to 7 = they felt very far from me then).
Participants were asked a new manipulation check: the extent to which they kept in mind their “other self” as a guide when doing the task (1 = did not keep in mind, 7 = kept in mind).
A measure that logged time spent per photo was added. This will be used for an exploratory hypothesis, which is that participants in the fun condition who role model their past selves will spend more time ‘enjoying’ the task than participants in the same condition who role model their future selves.
In demographics, a question was added to assess education levels.
- Question modifications
- Response questions
For the response question in which participants were asked to write 5-10 sentences about their role model, I created a minimum of 250 characters, assuming conservatively 50 characters per question (and in piloting, no one was below this threshold). In the text description of the task, I added
For the self-control task response questions, in which participants had to do some sort of counting task, I changed it from an essay box to a single line box, and I also required that participants write a number.
For the fun task response questions, in which participants had to write “ok”, I required that participants type in “ok”.
- Control variables
For the question that assessed how far away the self felt from them right now, I bolded the words “does” and “right now”.
I eliminated three control variable questions that were asked in the original survey, but that are not predicted to affect the way in which a participant proceeds through the survey.
- Appearance
I inserted my own images so that they would load quicker (I set the dimensions to be width = 700 ahead of time)
I deleted the white space above and below the images so easier to see all at once on one page. I also deleted extra spacing in the intro slide.
- Demographics
For the gender question, I added “I prefer another term” and phrased as “What gender do you most identify with?”
For the ethnicity question, I used different options.
I did not randomize the question order for demographics, and I made all as “request response” rather than “force response”
I added the demographics questions after the control variable questions.
- Other changes
- I fixed several typos, including:
For the future self condition, I changed the wording from “who you recall being” to “who you imagine being.”
I changed it to “your” not “you’re” on page 1.
I inserted the word “to” in the following phrase: your job is [to] complete a “fun” task.
For the past fun condition, I changed the end of the phrase to say “want you to quit” from “move onto other things” for the fun conditions
I inserted the words “was it” in the following phrase: how difficult [was it] to imagine your “other self”
I changed from “click continue” to “click the arrow” throughout.
Analysis plan differences
As noted in the “Analysis Plan” section, I conduct a two-way ANOVA rather than a univariate MANOVA as MANOVA’s are for two dependent variables typically and there is only one dependent variable.
Methods Addendum (Post Data Collection)
You can comment this section out prior to final report with data collection.
Actual Sample
Sample size, demographics, data exclusions based on rules spelled out in analysis plan
Differences from pre-data collection methods plan
Any differences from what was described as the original plan, or “none”.
Results
Data preparation
## Parsed with column specification:
## cols(
## .default = col_character()
## )
## See spec(...) for full column specifications.
How many people did we collect per condition?
number <- d.tidy %>%
group_by(condition) %>%
summarise(n = n()) %>%
kable("html", caption = "Participants Per Condition")
number
Participants Per Condition
|
condition
|
n
|
|
futurefun
|
38
|
|
futurerational
|
30
|
|
pastfun
|
37
|
|
pastrational
|
43
|
I created a tidy data set to be used in the confirmatory analysis:
Tidy Data
|
subid
|
task
|
rolemodel
|
difficult
|
detailed
|
distancenow
|
distancetask
|
ManipulationCheck
|
numtrials
|
|
1
|
fun
|
past
|
2
|
6
|
5
|
4
|
7
|
1
|
|
2
|
selfcontrol
|
past
|
2
|
2
|
2
|
2
|
6
|
1
|
|
3
|
fun
|
past
|
1
|
5
|
4
|
2
|
4
|
1
|
|
4
|
fun
|
past
|
5
|
3
|
4
|
4
|
5
|
1
|
|
5
|
fun
|
future
|
4
|
4
|
5
|
4
|
4
|
1
|
|
6
|
selfcontrol
|
future
|
4
|
2
|
5
|
3
|
4
|
1
|
I created a summarized data set to be used to plot findings:
Summarized Data
|
task
|
rolemodel
|
avgtrials
|
ci
|
n
|
|
fun
|
future
|
5.47
|
1.19
|
38
|
|
fun
|
past
|
4.81
|
1.08
|
37
|
|
selfcontrol
|
future
|
3.67
|
0.96
|
30
|
|
selfcontrol
|
past
|
3.84
|
0.89
|
43
|
Confirmatory analysis
Graph of Main Finding – Two Way Interaction
This is the original chart from the paper for the key analysis:

This is my replicated finding:
ggplot(data = d.summarized,
aes(x = task, y = avgtrials, fill = rolemodel)) +
geom_bar(stat="identity", width = 0.5, position = "dodge", colour = "black") +
geom_errorbar(aes(ymin = (avgtrials - ci), ymax = (avgtrials + ci)),width = 0.07, position = position_dodge(width = 0.5)) +
scale_fill_manual(name="",
values = c("future" = "grey34","past" = "gray69"), #future is dark grey, past is light grey
labels = c("future" = "Motivated by Future Self", "past" = "Motivated by Past Self ")) +
scale_x_discrete(labels = c("Fun Task", "Self-Control Task")) +
scale_y_continuous(breaks = 1:10)+
coord_cartesian(ylim=c(1,8)) +
labs(x = "Task Frame",
y = "Trials completed (min 1, max 10)",
caption = " Results of Replication. Mean number of photos viewed before opting to \nend the slideshow. Error bars are 95% confidence intervals.") +
ggthemes::theme_few() +
theme(aspect.ratio=3/5,
legend.direction = "horizontal",
legend.justification = c("right", "top"),
legend.position = c(0.8,.97),
legend.text = element_text(size=16),
plot.caption = element_text(hjust=0.05, vjust=0.1, size = 16),
axis.text.y = element_text(size=14),
axis.title.y = element_text(size = 14, face="bold"),
axis.text.x = element_text(size=18, colour = "black"),
axis.title.x = element_text(size=16))

Main Finding – Two Way Interaction
First, let’s look at the two way anova, looking at the number of trials completed comparing task by role model. The main term of interest is the p-value for the task:role model condition; in other words, we want to know whether the task by role model interaction is significant.
#Anova
fit <- anova(lm(numtrials ~ task * rolemodel, d.tidy))
kable(fit, digits = 2, format = "html", caption = "ANOVA output")
ANOVA output
|
|
Df
|
Sum Sq
|
Mean Sq
|
F value
|
Pr(>F)
|
|
task
|
1
|
70.40
|
70.40
|
6.73
|
0.01
|
|
rolemodel
|
1
|
2.43
|
2.43
|
0.23
|
0.63
|
|
task:rolemodel
|
1
|
6.32
|
6.32
|
0.60
|
0.44
|
|
Residuals
|
144
|
1505.68
|
10.46
|
NA
|
NA
|
This analysis confirmed what we saw in the chart: the interaction was not signficant. Moreover, as we saw, there was a main effect by task.
Even though the interaction was not signficant, and seemed to be in the opposite direction, let’s look at the effect size (eta squared).
Eta Squared Values
|
task
|
0.044
|
|
rolemodel
|
0.002
|
|
task:rolemodel
|
0.004
|
Partial Eta Squared Values
|
task
|
0.04467
|
|
rolemodel
|
0.00161
|
|
task:rolemodel
|
0.00418
|
Potential Exploratory Analyses – Overview
Exploratory Analysis #1 – New Analytical Approach to Confirmatory Analysis (Log of Data, Poisson Regression)
Let’s see if the trial data was normally distributed.


From these two charts, we can see that the number of trials is not normally distributed and has spikes at 1 photo (minimum) and at 10 potos (the maximium), and there wsa slight bump around 3 photos. This overall pattern appeared the same by condition.
If we log transform our data by taking a logarithm, will that help with the distribution?

This did not effectively transform our data.
Alternatively, let’s try modeling this with poisson regression (note: zero inflated poisson regression not appropriate as there are not an excess of zeroes in the non-log-transformed data set; in the log-transformed data set there is still the problem that the data is not normally distributed).
#Poisson Regression
summary(poissonml <- glm(numtrials ~ task * rolemodel, family = "poisson"(link=log), d.tidy))
##
## Call:
## glm(formula = numtrials ~ task * rolemodel, family = poisson(link = log),
## data = d.tidy)
##
## Deviance Residuals:
## Min 1Q Median 3Q Max
## -2.3553 -1.6675 -0.3702 1.0191 2.7202
##
## Coefficients:
## Estimate Std. Error z value Pr(>|z|)
## (Intercept) 1.69995 0.06934 24.517 < 2e-16 ***
## taskselfcontrol -0.40067 0.11789 -3.399 0.000677 ***
## rolemodelpast -0.12909 0.10211 -1.264 0.206145
## taskselfcontrol:rolemodelpast 0.17455 0.15993 1.091 0.275090
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## (Dispersion parameter for poisson family taken to be 1)
##
## Null deviance: 355.51 on 147 degrees of freedom
## Residual deviance: 337.92 on 144 degrees of freedom
## AIC: 802.23
##
## Number of Fisher Scoring iterations: 5
The interaction does not seem to be significant.
Exploratory Analysis #2 – Binary Outcomes
What if we viewed the outcome as a binary: do people do just one trial or persist? While this is not quite how the original author viewed the study, it would be interesting if task-role model fit would lead to a greater completion of trials.
Let’s transform the data into a binary: were the number of trials above 1 or not.
## Warning: Ignoring unknown parameters: binwidth, bins, pad

##
## Call:
## glm(formula = binarynumtrialsforanalysis ~ task * rolemodel,
## family = binomial(link = "logit"), data = d.tidy.binary)
##
## Deviance Residuals:
## Min 1Q Median 3Q Max
## -1.8394 -1.4823 0.7938 0.8876 0.9005
##
## Coefficients:
## Estimate Std. Error z value Pr(>|z|)
## (Intercept) 1.4881 0.4185 3.556 0.000377 ***
## taskselfcontrol -0.7949 0.5702 -1.394 0.163272
## rolemodelpast -0.4948 0.5587 -0.886 0.375799
## taskselfcontrol:rolemodelpast 0.5299 0.7537 0.703 0.482001
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## (Dispersion parameter for binomial family taken to be 1)
##
## Null deviance: 174.68 on 147 degrees of freedom
## Residual deviance: 171.94 on 144 degrees of freedom
## AIC: 179.94
##
## Number of Fisher Scoring iterations: 4
There appears to be no interaction among conditions. Interestingly, in this analysis, there is no main effect by condition either.
Exploratory Analysis #3 – Covariates
What if we performed the same two-way anova, using the different covariates O’Brien (2015) used, as well as the new covariate I created? We try this below, substituting a poisson regression for a two-way anova.
summary(poissonml_difficultcov <- glm(numtrials ~ task * rolemodel + difficult, family = "poisson"(link=log), d.tidy))
##
## Call:
## glm(formula = numtrials ~ task * rolemodel + difficult, family = poisson(link = log),
## data = d.tidy)
##
## Deviance Residuals:
## Min 1Q Median 3Q Max
## -2.6362 -1.5434 -0.3055 0.9768 3.0221
##
## Coefficients:
## Estimate Std. Error z value Pr(>|z|)
## (Intercept) 1.590339 0.096802 16.429 < 2e-16 ***
## taskselfcontrol -0.420834 0.122017 -3.449 0.000563 ***
## rolemodelpast -0.143869 0.104513 -1.377 0.168644
## difficult2 0.253117 0.112153 2.257 0.024014 *
## difficult3 0.139920 0.123281 1.135 0.256387
## difficult4 -0.002284 0.181590 -0.013 0.989963
## difficult5 0.098846 0.129863 0.761 0.446565
## difficult6 -0.018767 0.213206 -0.088 0.929859
## difficult7 0.244414 0.273099 0.895 0.370806
## taskselfcontrol:rolemodelpast 0.204305 0.167535 1.219 0.222665
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## (Dispersion parameter for poisson family taken to be 1)
##
## Null deviance: 355.51 on 147 degrees of freedom
## Residual deviance: 331.13 on 138 degrees of freedom
## AIC: 807.43
##
## Number of Fisher Scoring iterations: 5
summary(poissonml_detailedcov <- glm(numtrials ~ task * rolemodel + detailed, family = "poisson"(link=log), d.tidy))
##
## Call:
## glm(formula = numtrials ~ task * rolemodel + detailed, family = poisson(link = log),
## data = d.tidy)
##
## Deviance Residuals:
## Min 1Q Median 3Q Max
## -2.4938 -1.6131 -0.2838 0.9514 2.7892
##
## Coefficients:
## Estimate Std. Error z value Pr(>|z|)
## (Intercept) 1.97563 0.21672 9.116 < 2e-16 ***
## taskselfcontrol -0.43842 0.12101 -3.623 0.000291 ***
## rolemodelpast -0.14892 0.10379 -1.435 0.151358
## detailed2 -0.30676 0.25565 -1.200 0.230181
## detailed3 -0.05494 0.23331 -0.235 0.813831
## detailed4 -0.21919 0.22687 -0.966 0.333960
## detailed5 -0.29127 0.22553 -1.291 0.196530
## detailed6 -0.26770 0.22927 -1.168 0.242966
## detailed7 -0.39707 0.22780 -1.743 0.081320 .
## taskselfcontrol:rolemodelpast 0.20579 0.16240 1.267 0.205104
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## (Dispersion parameter for poisson family taken to be 1)
##
## Null deviance: 355.51 on 147 degrees of freedom
## Residual deviance: 330.09 on 138 degrees of freedom
## AIC: 806.4
##
## Number of Fisher Scoring iterations: 5
summary(poissonml_distancenowcov <- glm(numtrials ~ task * rolemodel + distancenow, family = "poisson"(link=log), d.tidy))
##
## Call:
## glm(formula = numtrials ~ task * rolemodel + distancenow, family = poisson(link = log),
## data = d.tidy)
##
## Deviance Residuals:
## Min 1Q Median 3Q Max
## -2.7250 -1.5418 -0.2277 1.0077 2.6443
##
## Coefficients:
## Estimate Std. Error z value Pr(>|z|)
## (Intercept) 1.98528 0.17249 11.510 < 2e-16 ***
## taskselfcontrol -0.40711 0.11958 -3.405 0.000663 ***
## rolemodelpast -0.14438 0.10260 -1.407 0.159361
## distancenow2 -0.09824 0.20073 -0.489 0.624550
## distancenow3 -0.25819 0.19707 -1.310 0.190144
## distancenow4 -0.24643 0.18199 -1.354 0.175699
## distancenow5 -0.37310 0.18753 -1.990 0.046639 *
## distancenow6 -0.34344 0.20390 -1.684 0.092106 .
## distancenow7 -0.37963 0.19534 -1.943 0.051970 .
## taskselfcontrol:rolemodelpast 0.17310 0.16077 1.077 0.281618
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## (Dispersion parameter for poisson family taken to be 1)
##
## Null deviance: 355.51 on 147 degrees of freedom
## Residual deviance: 330.26 on 138 degrees of freedom
## AIC: 806.57
##
## Number of Fisher Scoring iterations: 5
summary(poissonml_distancetaskcov <- glm(numtrials ~ task * rolemodel + distancetask, family = "poisson"(link=log), d.tidy))
##
## Call:
## glm(formula = numtrials ~ task * rolemodel + distancetask, family = poisson(link = log),
## data = d.tidy)
##
## Deviance Residuals:
## Min 1Q Median 3Q Max
## -2.7413 -1.3944 -0.3028 1.0467 3.0985
##
## Coefficients:
## Estimate Std. Error z value Pr(>|z|)
## (Intercept) 1.80923 0.13735 13.172 < 2e-16 ***
## taskselfcontrol -0.39171 0.11854 -3.304 0.000952 ***
## rolemodelpast -0.13202 0.10330 -1.278 0.201220
## distancetask2 0.08575 0.15902 0.539 0.589731
## distancetask3 -0.05404 0.16391 -0.330 0.741631
## distancetask4 -0.31575 0.15990 -1.975 0.048303 *
## distancetask5 -0.14388 0.15824 -0.909 0.363219
## distancetask6 0.07603 0.18966 0.401 0.688511
## distancetask7 -0.33154 0.19999 -1.658 0.097358 .
## taskselfcontrol:rolemodelpast 0.16333 0.16045 1.018 0.308691
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## (Dispersion parameter for poisson family taken to be 1)
##
## Null deviance: 355.51 on 147 degrees of freedom
## Residual deviance: 322.10 on 138 degrees of freedom
## AIC: 798.41
##
## Number of Fisher Scoring iterations: 5
This shows that regardless of covariate used, the criticial interaction was never significant.
Exploratory Analysis #4 – Manipulation check
It might be that this experiment did not “work” because people did not use their past or future self as a role model. Let’s see how participants scored on the manipulation check I created:
## Warning: Ignoring unknown parameters: binwidth, bins, pad

From this chart, we can see that the majority of participants scored at or above the midpoint. However, I think we really want to look at participants who actually tried to do this experiment. So, let’s keep only people who scored a 5 or higher on the manipulation check.
How does this affect our analyses? Let’s chart the data.

There is no difference, even after accounting for the manipulation check.
Exploratory Analysis #5 – Time differences by condition
One implication of using your past self (future self) as a role model for the fun (self-control) task is that you spend longer on each slide enjoying it (counting) than when you use your future (past) self as a role model.
How much time were participants spending on each page before submitting?
## Joining, by = "subid"

The data is clearly not normally distributed. So, let’s take the log of the data, and then look at time.
## `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.

Log Time per Trial Two-Way ANOVA
|
|
Df
|
Sum Sq
|
Mean Sq
|
F value
|
Pr(>F)
|
|
task
|
1
|
3.87
|
3.87
|
50.04
|
0.00
|
|
rolemodel
|
1
|
0.03
|
0.03
|
0.39
|
0.53
|
|
task:rolemodel
|
1
|
0.08
|
0.08
|
1.05
|
0.31
|
|
Residuals
|
144
|
11.13
|
0.08
|
NA
|
NA
|
There does not seem to be any interaction, although it does seem to be the case that participants in the self-control task spent slightly more time per page when role modeling their future self (potentially why they viewed fewer pages).
ROUGH (move some up to methods) Exploratory 6 – Why was there a difference in N by condition?
Why was there a difference by condition? Did time vary?
#Create Data set to "check"
d.check <- d %>%
filter(!((DistributionChannel == "Distribution Channel") |
DistributionChannel == "{\"ImportId\":\"distributionChannel\"}")) %>%
mutate(subid = row_number()) %>% #create subject id column
select(condition, sex, Ethnicity, age, Education, Q_TotalDuration)
#Make variables to be correct
d.check$Q_TotalDuration <- as.numeric(d.check$Q_TotalDuration)
d.check$age <- as.numeric(d.check$age)
d.check$sex <- as.factor(d.check$sex)
levels(d.check$sex) <- c("male", "female")
#Create dataset to plot
d.time <- d.check %>%
group_by(condition) %>%
summarise(mean_time = mean(Q_TotalDuration),
ci = ci(Q_TotalDuration),
n = n())
#Plot time
ggplot(d.time,
aes(x=condition,
y=mean_time))+
geom_bar(stat="identity") +
geom_errorbar(aes(ymin = (mean_time - ci), ymax = (mean_time + ci)),width = 0.1) +
labs(title = "Time by condition",
x = "Condition",
y = "Time (seconds)",
caption = "95% confidence interval") +
ggthemes::theme_few()

No, differences in time doesn’t seem to explain why this happened based on the 95% confidence intervals. It could just be a random variation in the timing of when people finished.
This leads to another question: Did people people vary by condition? Specifically, did they differ along gender or age?
#Create columns
d.demographics <- d.check %>%
group_by(condition) %>%
summarise(mean_age = mean(age),
ci_age = ci(age),
sex_males = sum(sex =="male"),
n = n(),
prct_males = (sex_males/n))
#Plot Age
ggplot(d.demographics,
aes(x=condition,
y=mean_age))+
geom_bar(stat="identity") +
geom_errorbar(aes(ymin = (mean_age - ci_age), ymax = (mean_age + ci_age)),width = 0.1) +
labs(title = "Age by condition",
x = "Condition",
y = "Average Age (years)",
caption = "95% confidence interval") +
ggthemes::theme_few()

#Chi-squared for percentage males
chisq_gender <- chisq.test(x=d.demographics$condition, y = d.demographics$prct_males)
## Warning in chisq.test(x = d.demographics$condition, y = d.demographics
## $prct_males): Chi-squared approximation may be incorrect
chisq_gender
##
## Pearson's Chi-squared test
##
## data: d.demographics$condition and d.demographics$prct_males
## X-squared = 12, df = 9, p-value = 0.2133
Based on the above, there doesn’t seem to need to be any corrections to the data.