SlideShare a Scribd company logo
Mediation in health research:
A statistics workshop using SPSS
Dr. Sean P. Mackinnon
Dalhousie University
Crossroads Interdisciplinary Health Conference, 2015
What kinds of questions does
mediation answer?
• Mediation asks about the process by which a
predictor variable affects an outcome
• “Does X predict M, which in turn predicts Y?”
• E.g., “Does exercise improve cardiovascular
health, which in turn increases longevity?”
Linear Regression
• Understanding mediation requires a basic
understanding of linear regression
• Displayed as a path diagram, it could look
something like this:
Impulsivity Binge Drinking
.30
The number depicted here is the slope (B value, or b1 above)
c-path
also called the “total effect”
iii XbbY  10
Mediation
• Mediation builds on this basic linear regression model by
adding a third variable (i.e., the “mediator”)
• In mediation, the third variable is thought to come in
between X & Y. So, X leads to the mediator, which in turn
leads to Y.
Impulsivity Binge Drinking
Enhancement
Motives
Mediation
• The idea is, the c-path (the direct effect) should get smaller
with the addition of a mediator.
• So, we want to know if the c-path – c’-path is “statistically
significant.”
Impulsivity Binge Drinking
Enhancement
Motives
c’-path
Also called the “direct effect”
Mediation
• To test this, you first need to get the slope of two other
relationships: a and b paths
Impulsivity Binge Drinking
Enhancement
Motives
c’-path
Get the slope of this
relationship
a-path
Get the slope of this
relationship while also
controlling for
enhancement motives
b-path
Mediation
• Mathematicians have shown that
– (a-path * b-path) = c-path – c’ path
– (But only when X and M are continuous)
• Thus, if a*b (“the indirect effect”) is statistically significant,
mediation has occurred
Impulsivity Binge Drinking
Enhancement
Motives
c’-path
a-path b-path
Preacher & Hayes (2008)
Significance of Indirect Effect
• Lots of ways to test the significance of a*b
– Test of Joint Significance
– Sobel Test
– Bootstrapped Confidence Intervals
• Of these methods, bootstrapping is currently the most preferred
• But … Hayes & Scharkow (2013) have shown that the different
methods agree > 90% of the time…
Joint Significance Test
(Baron & Kenny, 1986)
• If the a-path AND the b-path are both significant,
conclude that a*b is also significant.
• This is a liberal test (i.e., high Type I error) and is
usually used as a supplement to other methods.
Impulsivity Binge Drinking
Enhancement
Motives
.05
.25* .28*
c’ path
a-path b-path
Sobel Test (Sobel, 1982)
• An alternative is to estimate the indirect effect and its significance
using the Sobel test (Sobel. 1982).
• It is a conservative test (i.e., high Type II error)
• z-value = a*b/SQRT(b2*sa
2 + a2*sb
2)
– a = B value (slope) for a-path
– b = B value (slope) for b-path
– sa = SE for a-path
– sa = SE for b-path
• Online Calculator for Sobel Test:
– http://quantpsy.org/sobel/sobel.htm
– Also available in the PROCESS macro discussed later
Bootstrapping
• The sobel test is inaccurate because it relies on an
assumption of a normal sampling distrbution:
– However, the sampling distribution distribution of a*b is
non-normal except in very large samples…
• Bootstrapping is a computer intensive, robust analysis
technique that can be applied to non-normal data.
• Virtually any analysis can be bootstrapped, but we’re
going to apply it to testing the significance of the
indirect effect (a*b).
What is a “Re-Sample?”
In SPSS, Each row is a “person” who has an ID, and lots of values on measures
A “re-sample” randomly samples participants from the sample, with replacement
Re-sample 1
ID1
ID3
ID4
ID2
Re-sample 2
ID1
ID1
ID3
ID2
Re-sample 3
ID4
ID4
ID2
ID2
Note that people can be duplicated in the resamples using this method
What is bootstrapping?
The idea of the sampling distribution of the sample mean x-bar: take
very many samples, collect the x-values from each, and look at the
distribution of these values
From Hesterberg et al. (2003)
What is bootstrapping?
From Hesterberg et al. (2003)
The theory shortcut: if we know that the population values follow
a normal distribution, theory tells us that the sampling
distribution of x-bar is also normal.
This is known as the
central limit theorem
What is bootstrapping?
From Hesterberg et al. (2003)
The bootstrap idea: when theory fails and we can afford only one
sample, that sample stands in for the population, and
the distribution of x in many resamples stands in for the sampling
distribution
Bootstrapping Indirect Effects
• Create 1000s of simulated datasets using re-
sampling with replacement
– Pretends as though your sample is the population, and
you simulate other samples from that.
• Run the analysis once in each of these 1000s of
samples
• Of those analyses, 95% of the generated statistics
will fall between two numbers. If zero isn’t in that
interval, p < .05!
Effect Sizes for Mediation
• There are many different ways to calculate effect
sizes for mediation analysis (Preacher & Kelly, 2011)
• Two simple-to-understand effect size measures are:
– Percent mediation (PM)
– Completely Standardized Indirect Effect (abcs)
Percent Mediation
Impulsivity Binge Drinking
Enhancement
Motives
.12* (.05)
.25* .28*
c-path (c’ path)
a-path b-path
ab = .25 * .28 = .07
c = .12
PM = .07 / .12 = .583
Interpreted as the percent of the total effect (c) accounted
for by your indirect effect (a*b).
Note about Percent Mediation…
• The direct effect (c’-path) can sometimes be
larger than the total effect (c-path)
– Inconsistent mediation
• In these cases, take the absolute value of c’
before calculating effect size to avoid
proportions greater than 1.0.
Completely Standardized Indirect
Effect
• So, it’s just two steps:
– 1. Calculate the standardized regression paths for the a and b
paths
– 2. Multiply them together to get the ES
– (So, just standardize your variables before analysis and you can
get a 95% CI!)
• Is now a standardized version that will be similar in
interpretation across measures … but it’s no longer
bounded by -1 and 1 like a correlation.
Which is the
same as …
Installing the PROCESS macro in SPSS
• Download files from here:
– process.spd
– http://www.processmacro.org/download.html
Once you do this, you’ll get a new analysis
you can run under:
Analyze  Regression  PROCESS
Now every time you open SPSS, you’ll
have the option to run mediation analyses!
A Sample Model w. Output
Conscientious
Personality
Overall Physical
Health
Health-Related
Behaviours
Uses a (fabricated) dataset you can find online here if
you want to try it on your own time for practice:
http://savvystatistics.com/wp-
content/uploads/2015/03/crossroads.2015.data_.csv
RQ: Do health related behaviours mediate the relationship between
conscientious personality and overall physical health?
How to Run in SPSS
For basic mediation, use “model 4”
Conscientiousness = X
Physical health = Y
Health-Related Behaviours = M
Annotated Output: a, b. c’ paths
Coeff = Slope; SE = standard error; t = t-statistic; p = p-value
LLCI & ULCI = lower and upper levels for confidence interval
a-path
b-path
c'-path (direct effect)
Annotated Output: c-path
c-path
(total effect)
Annotated Output: Effect Size &
Significance of Indirect Effect
Effect Size 1: abcs
(Report the 95% CI For this)
Effect Size 2: PM
(Don’t use the 95% CI For this)
Upper and Lower
Bootstrapped 95% CI
a*b or “indirect effect”
Report the 95% CI for this
If the CI for a*b does not include
zero, then mediation has occurred!
Reporting Mediation Analysis
There was a significant indirect effect of
conscientiousness on overall physical health through
health-related behaviours, ab = 0.21, BCa CI [0.15,
0.26]. The mediator could account for roughly half of
the total effect, PM = .44.
Conscientious
Personality
Overall Physical
Health
Health-Related
Behaviours0.52*** 0.39***
0.26***
(0.47)***
Questions / Contact
Thank you for your time! 
• Email: mackinnon.sean@dal.ca
Appendix: Syntax
*Make sure to run the process.sps macro first, or
this won’t work!
*This is an alternative to running using the GUI
PROCESS vars = health bfi.c behave
/y=health/x=bfi.c/m=behave/w=/z=/v=/q=/
model =4/boot=1000/center=0/hc3=1/effsize=1/
normal=1/coeffci=1/conf=95/percent=0/total=1/
covmy=0/jn=0/quantile =0/plot=0/contrast=0/
decimals=F10.4/covcoeff=0.
2015-03-24

More Related Content

What's hot

Two-way Repeated Measures ANOVA
Two-way Repeated Measures ANOVATwo-way Repeated Measures ANOVA
Two-way Repeated Measures ANOVA
J P Verma
 
MANOVA SPSS
MANOVA SPSSMANOVA SPSS
MANOVA SPSS
Dr Athar Khan
 
Full anova and manova by ammara aftab
Full anova and manova by ammara aftabFull anova and manova by ammara aftab
Full anova and manova by ammara aftab
University of Karachi
 
Reporting a Factorial ANOVA
Reporting a Factorial ANOVAReporting a Factorial ANOVA
Reporting a Factorial ANOVA
Ken Plummer
 
Summary and conclusion - Survey research and design in psychology
Summary and conclusion - Survey research and design in psychologySummary and conclusion - Survey research and design in psychology
Summary and conclusion - Survey research and design in psychology
James Neill
 
Moderation and mediation
Moderation and mediation Moderation and mediation
Moderation and mediation
TAYYABA MAHR
 
Exploratory factor analysis
Exploratory factor analysisExploratory factor analysis
Exploratory factor analysis
James Neill
 
Anova single factor
Anova single factorAnova single factor
Anova single factor
Dhruv Patel
 
Two-Way ANOVA Overview & SPSS interpretation
Two-Way ANOVA Overview & SPSS interpretationTwo-Way ANOVA Overview & SPSS interpretation
Two-Way ANOVA Overview & SPSS interpretation
Sr Edith Bogue
 
Ordinal Logistic Regression
Ordinal Logistic RegressionOrdinal Logistic Regression
Ordinal Logistic Regression
Al-Ahmadgaid Asaad
 
Introduction to Statistics
Introduction to StatisticsIntroduction to Statistics
Introduction to Statistics
jasondroesch
 
Discriminant analysis using spss
Discriminant analysis using spssDiscriminant analysis using spss
Discriminant analysis using spss
Dr Nisha Arora
 
Reconsidering baron and kenny
Reconsidering baron and kennyReconsidering baron and kenny
Reconsidering baron and kenny
Minhwan Lee
 
Anova ancova manova_mancova
Anova  ancova manova_mancovaAnova  ancova manova_mancova
Anova ancova manova_mancovaCarlo Magno
 
Power study: 1-way anova vs kruskall wallis
Power study: 1-way anova vs kruskall wallisPower study: 1-way anova vs kruskall wallis
Power study: 1-way anova vs kruskall wallis
Don Cua
 
Logistic regression with SPSS
Logistic regression with SPSSLogistic regression with SPSS
Logistic regression with SPSS
LNIPE
 
Linear Regression Using SPSS
Linear Regression Using SPSSLinear Regression Using SPSS
Linear Regression Using SPSS
Dr Athar Khan
 
Normality test on SPSS
Normality test on SPSSNormality test on SPSS
Normality test on SPSS
AmnaFazal3
 
Ancova and Mancova
Ancova and MancovaAncova and Mancova
Ancova and Mancova
Prum Rotana
 

What's hot (20)

Two-way Repeated Measures ANOVA
Two-way Repeated Measures ANOVATwo-way Repeated Measures ANOVA
Two-way Repeated Measures ANOVA
 
Manova Report
Manova ReportManova Report
Manova Report
 
MANOVA SPSS
MANOVA SPSSMANOVA SPSS
MANOVA SPSS
 
Full anova and manova by ammara aftab
Full anova and manova by ammara aftabFull anova and manova by ammara aftab
Full anova and manova by ammara aftab
 
Reporting a Factorial ANOVA
Reporting a Factorial ANOVAReporting a Factorial ANOVA
Reporting a Factorial ANOVA
 
Summary and conclusion - Survey research and design in psychology
Summary and conclusion - Survey research and design in psychologySummary and conclusion - Survey research and design in psychology
Summary and conclusion - Survey research and design in psychology
 
Moderation and mediation
Moderation and mediation Moderation and mediation
Moderation and mediation
 
Exploratory factor analysis
Exploratory factor analysisExploratory factor analysis
Exploratory factor analysis
 
Anova single factor
Anova single factorAnova single factor
Anova single factor
 
Two-Way ANOVA Overview & SPSS interpretation
Two-Way ANOVA Overview & SPSS interpretationTwo-Way ANOVA Overview & SPSS interpretation
Two-Way ANOVA Overview & SPSS interpretation
 
Ordinal Logistic Regression
Ordinal Logistic RegressionOrdinal Logistic Regression
Ordinal Logistic Regression
 
Introduction to Statistics
Introduction to StatisticsIntroduction to Statistics
Introduction to Statistics
 
Discriminant analysis using spss
Discriminant analysis using spssDiscriminant analysis using spss
Discriminant analysis using spss
 
Reconsidering baron and kenny
Reconsidering baron and kennyReconsidering baron and kenny
Reconsidering baron and kenny
 
Anova ancova manova_mancova
Anova  ancova manova_mancovaAnova  ancova manova_mancova
Anova ancova manova_mancova
 
Power study: 1-way anova vs kruskall wallis
Power study: 1-way anova vs kruskall wallisPower study: 1-way anova vs kruskall wallis
Power study: 1-way anova vs kruskall wallis
 
Logistic regression with SPSS
Logistic regression with SPSSLogistic regression with SPSS
Logistic regression with SPSS
 
Linear Regression Using SPSS
Linear Regression Using SPSSLinear Regression Using SPSS
Linear Regression Using SPSS
 
Normality test on SPSS
Normality test on SPSSNormality test on SPSS
Normality test on SPSS
 
Ancova and Mancova
Ancova and MancovaAncova and Mancova
Ancova and Mancova
 

Viewers also liked

Wavelet bootstrap Multiple linear regression models
Wavelet bootstrap Multiple linear regression modelsWavelet bootstrap Multiple linear regression models
Wavelet bootstrap Multiple linear regression modelsVinit Sehgal
 
rights and legal aspects of disability in India
rights and legal aspects of disability in Indiarights and legal aspects of disability in India
rights and legal aspects of disability in India
Neeraja Cj
 
PhD Presentation (Doctorate)
PhD Presentation (Doctorate)PhD Presentation (Doctorate)
PhD Presentation (Doctorate)
Sharif Omar Salem
 
Intorduction to Cisa
Intorduction to CisaIntorduction to Cisa
Intorduction to CisaAli Katouzian
 
CISA Domain 1 - IS Auditing (day 1)
CISA Domain 1 - IS Auditing (day 1)CISA Domain 1 - IS Auditing (day 1)
CISA Domain 1 - IS Auditing (day 1)Cyril Soeri
 
CISA exam 100 practice question
CISA exam 100 practice questionCISA exam 100 practice question
CISA exam 100 practice question
Arshad A Javed
 
CISA Training - Chapter 2 - 2016
CISA Training - Chapter 2 - 2016CISA Training - Chapter 2 - 2016
CISA Training - Chapter 2 - 2016
Hafiz Sheikh Adnan Ahmed
 
CISA Training - Chapter 1 - 2016
CISA Training - Chapter 1 - 2016CISA Training - Chapter 1 - 2016
CISA Training - Chapter 1 - 2016
Hafiz Sheikh Adnan Ahmed
 

Viewers also liked (8)

Wavelet bootstrap Multiple linear regression models
Wavelet bootstrap Multiple linear regression modelsWavelet bootstrap Multiple linear regression models
Wavelet bootstrap Multiple linear regression models
 
rights and legal aspects of disability in India
rights and legal aspects of disability in Indiarights and legal aspects of disability in India
rights and legal aspects of disability in India
 
PhD Presentation (Doctorate)
PhD Presentation (Doctorate)PhD Presentation (Doctorate)
PhD Presentation (Doctorate)
 
Intorduction to Cisa
Intorduction to CisaIntorduction to Cisa
Intorduction to Cisa
 
CISA Domain 1 - IS Auditing (day 1)
CISA Domain 1 - IS Auditing (day 1)CISA Domain 1 - IS Auditing (day 1)
CISA Domain 1 - IS Auditing (day 1)
 
CISA exam 100 practice question
CISA exam 100 practice questionCISA exam 100 practice question
CISA exam 100 practice question
 
CISA Training - Chapter 2 - 2016
CISA Training - Chapter 2 - 2016CISA Training - Chapter 2 - 2016
CISA Training - Chapter 2 - 2016
 
CISA Training - Chapter 1 - 2016
CISA Training - Chapter 1 - 2016CISA Training - Chapter 1 - 2016
CISA Training - Chapter 1 - 2016
 

Similar to Introduction to Mediation using SPSS

Network meta-analysis & models for inconsistency
Network meta-analysis & models for inconsistencyNetwork meta-analysis & models for inconsistency
Network meta-analysis & models for inconsistency
cheweb1
 
Causality in Python PyCon 2021 ISRAEL
Causality in Python PyCon 2021 ISRAELCausality in Python PyCon 2021 ISRAEL
Causality in Python PyCon 2021 ISRAEL
Hanan Shteingart
 
Statistics pres 3.31.2014
Statistics pres 3.31.2014Statistics pres 3.31.2014
Statistics pres 3.31.2014tjcarter
 
Chapter 13 Data Analysis Inferential Methods and Analysis of Time Series
Chapter 13 Data Analysis Inferential Methods and Analysis of Time SeriesChapter 13 Data Analysis Inferential Methods and Analysis of Time Series
Chapter 13 Data Analysis Inferential Methods and Analysis of Time Series
International advisers
 
Simple-Mediation-Analysis.pptx
Simple-Mediation-Analysis.pptxSimple-Mediation-Analysis.pptx
Simple-Mediation-Analysis.pptx
BayanahBayanah
 
Meta-analysis when the normality assumptions are violated (2008)
Meta-analysis when the normality assumptions are violated (2008)Meta-analysis when the normality assumptions are violated (2008)
Meta-analysis when the normality assumptions are violated (2008)
Evangelos Kontopantelis
 
Quantitative analysis
Quantitative analysisQuantitative analysis
Quantitative analysis
Rajesh Mishra
 
Quantitative_analysis.ppt
Quantitative_analysis.pptQuantitative_analysis.ppt
Quantitative_analysis.ppt
mousaderhem1
 
SPSS statistics - get help using SPSS
SPSS statistics - get help using SPSSSPSS statistics - get help using SPSS
SPSS statistics - get help using SPSS
csula its training
 
Between Black and White Population1. Comparing annual percent .docx
Between Black and White Population1. Comparing annual percent .docxBetween Black and White Population1. Comparing annual percent .docx
Between Black and White Population1. Comparing annual percent .docx
jasoninnes20
 
Statistics assignment on statistical inference
Statistics assignment on statistical inferenceStatistics assignment on statistical inference
Statistics assignment on statistical inference
sadiakarim8
 
Basics of Statistics.pptx
Basics of Statistics.pptxBasics of Statistics.pptx
Basics of Statistics.pptx
Ammar Sami AL-Bayati
 
Statistical tools in research
Statistical tools in researchStatistical tools in research
Statistical tools in research
Shubhrat Sharma
 
Statistical Analysis Of Data Final
Statistical Analysis Of Data FinalStatistical Analysis Of Data Final
Statistical Analysis Of Data FinalSaba Butt
 
BUS 308 Week 5 Lecture 3 A Different View Effect Sizes .docx
BUS 308 Week 5 Lecture 3 A Different View Effect Sizes .docxBUS 308 Week 5 Lecture 3 A Different View Effect Sizes .docx
BUS 308 Week 5 Lecture 3 A Different View Effect Sizes .docx
curwenmichaela
 
Selection of appropriate data analysis technique
Selection of appropriate data analysis techniqueSelection of appropriate data analysis technique
Selection of appropriate data analysis technique
RajaKrishnan M
 
1) The path length from A to B in the following graph is .docx
1) The path length from A to B in the following graph is .docx1) The path length from A to B in the following graph is .docx
1) The path length from A to B in the following graph is .docx
monicafrancis71118
 
Presentation David Kenny.pdf
Presentation David Kenny.pdfPresentation David Kenny.pdf
Presentation David Kenny.pdf
JoshuaLau29
 
chi_square test.pptx
chi_square test.pptxchi_square test.pptx
chi_square test.pptx
SheetalSardhna
 

Similar to Introduction to Mediation using SPSS (20)

Network meta-analysis & models for inconsistency
Network meta-analysis & models for inconsistencyNetwork meta-analysis & models for inconsistency
Network meta-analysis & models for inconsistency
 
Causality in Python PyCon 2021 ISRAEL
Causality in Python PyCon 2021 ISRAELCausality in Python PyCon 2021 ISRAEL
Causality in Python PyCon 2021 ISRAEL
 
Statistics pres 3.31.2014
Statistics pres 3.31.2014Statistics pres 3.31.2014
Statistics pres 3.31.2014
 
Chapter 13 Data Analysis Inferential Methods and Analysis of Time Series
Chapter 13 Data Analysis Inferential Methods and Analysis of Time SeriesChapter 13 Data Analysis Inferential Methods and Analysis of Time Series
Chapter 13 Data Analysis Inferential Methods and Analysis of Time Series
 
Simple-Mediation-Analysis.pptx
Simple-Mediation-Analysis.pptxSimple-Mediation-Analysis.pptx
Simple-Mediation-Analysis.pptx
 
Meta-analysis when the normality assumptions are violated (2008)
Meta-analysis when the normality assumptions are violated (2008)Meta-analysis when the normality assumptions are violated (2008)
Meta-analysis when the normality assumptions are violated (2008)
 
Quantitative analysis
Quantitative analysisQuantitative analysis
Quantitative analysis
 
Quantitative_analysis.ppt
Quantitative_analysis.pptQuantitative_analysis.ppt
Quantitative_analysis.ppt
 
SPSS statistics - get help using SPSS
SPSS statistics - get help using SPSSSPSS statistics - get help using SPSS
SPSS statistics - get help using SPSS
 
Between Black and White Population1. Comparing annual percent .docx
Between Black and White Population1. Comparing annual percent .docxBetween Black and White Population1. Comparing annual percent .docx
Between Black and White Population1. Comparing annual percent .docx
 
Statistics assignment on statistical inference
Statistics assignment on statistical inferenceStatistics assignment on statistical inference
Statistics assignment on statistical inference
 
Basics of Statistics.pptx
Basics of Statistics.pptxBasics of Statistics.pptx
Basics of Statistics.pptx
 
Statistical tools in research
Statistical tools in researchStatistical tools in research
Statistical tools in research
 
Statistical Analysis Of Data Final
Statistical Analysis Of Data FinalStatistical Analysis Of Data Final
Statistical Analysis Of Data Final
 
BUS 308 Week 5 Lecture 3 A Different View Effect Sizes .docx
BUS 308 Week 5 Lecture 3 A Different View Effect Sizes .docxBUS 308 Week 5 Lecture 3 A Different View Effect Sizes .docx
BUS 308 Week 5 Lecture 3 A Different View Effect Sizes .docx
 
Selection of appropriate data analysis technique
Selection of appropriate data analysis techniqueSelection of appropriate data analysis technique
Selection of appropriate data analysis technique
 
12.pdf
12.pdf12.pdf
12.pdf
 
1) The path length from A to B in the following graph is .docx
1) The path length from A to B in the following graph is .docx1) The path length from A to B in the following graph is .docx
1) The path length from A to B in the following graph is .docx
 
Presentation David Kenny.pdf
Presentation David Kenny.pdfPresentation David Kenny.pdf
Presentation David Kenny.pdf
 
chi_square test.pptx
chi_square test.pptxchi_square test.pptx
chi_square test.pptx
 

More from smackinnon

Using Cloud-based statistics applications to enhance statistics education
Using Cloud-based statistics applications to enhance statistics educationUsing Cloud-based statistics applications to enhance statistics education
Using Cloud-based statistics applications to enhance statistics education
smackinnon
 
One-Way ANOVA: Conceptual Foundations
One-Way ANOVA: Conceptual FoundationsOne-Way ANOVA: Conceptual Foundations
One-Way ANOVA: Conceptual Foundations
smackinnon
 
Generalized Linear Models for Between-Subjects Designs
Generalized Linear Models for Between-Subjects DesignsGeneralized Linear Models for Between-Subjects Designs
Generalized Linear Models for Between-Subjects Designs
smackinnon
 
Increasing Power without Increasing Sample Size
Increasing Power without Increasing Sample SizeIncreasing Power without Increasing Sample Size
Increasing Power without Increasing Sample Size
smackinnon
 
Basics of Structural Equation Modeling
Basics of Structural Equation ModelingBasics of Structural Equation Modeling
Basics of Structural Equation Modeling
smackinnon
 
A gentle introduction to growth curves using SPSS
A gentle introduction to growth curves using SPSSA gentle introduction to growth curves using SPSS
A gentle introduction to growth curves using SPSS
smackinnon
 

More from smackinnon (6)

Using Cloud-based statistics applications to enhance statistics education
Using Cloud-based statistics applications to enhance statistics educationUsing Cloud-based statistics applications to enhance statistics education
Using Cloud-based statistics applications to enhance statistics education
 
One-Way ANOVA: Conceptual Foundations
One-Way ANOVA: Conceptual FoundationsOne-Way ANOVA: Conceptual Foundations
One-Way ANOVA: Conceptual Foundations
 
Generalized Linear Models for Between-Subjects Designs
Generalized Linear Models for Between-Subjects DesignsGeneralized Linear Models for Between-Subjects Designs
Generalized Linear Models for Between-Subjects Designs
 
Increasing Power without Increasing Sample Size
Increasing Power without Increasing Sample SizeIncreasing Power without Increasing Sample Size
Increasing Power without Increasing Sample Size
 
Basics of Structural Equation Modeling
Basics of Structural Equation ModelingBasics of Structural Equation Modeling
Basics of Structural Equation Modeling
 
A gentle introduction to growth curves using SPSS
A gentle introduction to growth curves using SPSSA gentle introduction to growth curves using SPSS
A gentle introduction to growth curves using SPSS
 

Recently uploaded

Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptxData_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
AnirbanRoy608946
 
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
dwreak4tg
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
Timothy Spann
 
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Subhajit Sahu
 
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Subhajit Sahu
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
ewymefz
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
v3tuleee
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP
 
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
John Andrews
 
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
u86oixdj
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
Timothy Spann
 
Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...
Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...
Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...
2023240532
 
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
g4dpvqap0
 
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
axoqas
 
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
74nqk8xf
 
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
haila53
 
My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.
rwarrenll
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
Subhajit Sahu
 
Everything you wanted to know about LIHTC
Everything you wanted to know about LIHTCEverything you wanted to know about LIHTC
Everything you wanted to know about LIHTC
Roger Valdez
 

Recently uploaded (20)

Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptxData_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
 
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
 
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
 
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
 
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
 
Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...
Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...
Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...
 
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
 
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
 
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
 
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
 
My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
 
Everything you wanted to know about LIHTC
Everything you wanted to know about LIHTCEverything you wanted to know about LIHTC
Everything you wanted to know about LIHTC
 

Introduction to Mediation using SPSS

  • 1. Mediation in health research: A statistics workshop using SPSS Dr. Sean P. Mackinnon Dalhousie University Crossroads Interdisciplinary Health Conference, 2015
  • 2. What kinds of questions does mediation answer? • Mediation asks about the process by which a predictor variable affects an outcome • “Does X predict M, which in turn predicts Y?” • E.g., “Does exercise improve cardiovascular health, which in turn increases longevity?”
  • 3. Linear Regression • Understanding mediation requires a basic understanding of linear regression • Displayed as a path diagram, it could look something like this: Impulsivity Binge Drinking .30 The number depicted here is the slope (B value, or b1 above) c-path also called the “total effect” iii XbbY  10
  • 4. Mediation • Mediation builds on this basic linear regression model by adding a third variable (i.e., the “mediator”) • In mediation, the third variable is thought to come in between X & Y. So, X leads to the mediator, which in turn leads to Y. Impulsivity Binge Drinking Enhancement Motives
  • 5. Mediation • The idea is, the c-path (the direct effect) should get smaller with the addition of a mediator. • So, we want to know if the c-path – c’-path is “statistically significant.” Impulsivity Binge Drinking Enhancement Motives c’-path Also called the “direct effect”
  • 6. Mediation • To test this, you first need to get the slope of two other relationships: a and b paths Impulsivity Binge Drinking Enhancement Motives c’-path Get the slope of this relationship a-path Get the slope of this relationship while also controlling for enhancement motives b-path
  • 7. Mediation • Mathematicians have shown that – (a-path * b-path) = c-path – c’ path – (But only when X and M are continuous) • Thus, if a*b (“the indirect effect”) is statistically significant, mediation has occurred Impulsivity Binge Drinking Enhancement Motives c’-path a-path b-path Preacher & Hayes (2008)
  • 8. Significance of Indirect Effect • Lots of ways to test the significance of a*b – Test of Joint Significance – Sobel Test – Bootstrapped Confidence Intervals • Of these methods, bootstrapping is currently the most preferred • But … Hayes & Scharkow (2013) have shown that the different methods agree > 90% of the time…
  • 9. Joint Significance Test (Baron & Kenny, 1986) • If the a-path AND the b-path are both significant, conclude that a*b is also significant. • This is a liberal test (i.e., high Type I error) and is usually used as a supplement to other methods. Impulsivity Binge Drinking Enhancement Motives .05 .25* .28* c’ path a-path b-path
  • 10. Sobel Test (Sobel, 1982) • An alternative is to estimate the indirect effect and its significance using the Sobel test (Sobel. 1982). • It is a conservative test (i.e., high Type II error) • z-value = a*b/SQRT(b2*sa 2 + a2*sb 2) – a = B value (slope) for a-path – b = B value (slope) for b-path – sa = SE for a-path – sa = SE for b-path • Online Calculator for Sobel Test: – http://quantpsy.org/sobel/sobel.htm – Also available in the PROCESS macro discussed later
  • 11. Bootstrapping • The sobel test is inaccurate because it relies on an assumption of a normal sampling distrbution: – However, the sampling distribution distribution of a*b is non-normal except in very large samples… • Bootstrapping is a computer intensive, robust analysis technique that can be applied to non-normal data. • Virtually any analysis can be bootstrapped, but we’re going to apply it to testing the significance of the indirect effect (a*b).
  • 12. What is a “Re-Sample?” In SPSS, Each row is a “person” who has an ID, and lots of values on measures A “re-sample” randomly samples participants from the sample, with replacement Re-sample 1 ID1 ID3 ID4 ID2 Re-sample 2 ID1 ID1 ID3 ID2 Re-sample 3 ID4 ID4 ID2 ID2 Note that people can be duplicated in the resamples using this method
  • 13. What is bootstrapping? The idea of the sampling distribution of the sample mean x-bar: take very many samples, collect the x-values from each, and look at the distribution of these values From Hesterberg et al. (2003)
  • 14. What is bootstrapping? From Hesterberg et al. (2003) The theory shortcut: if we know that the population values follow a normal distribution, theory tells us that the sampling distribution of x-bar is also normal. This is known as the central limit theorem
  • 15. What is bootstrapping? From Hesterberg et al. (2003) The bootstrap idea: when theory fails and we can afford only one sample, that sample stands in for the population, and the distribution of x in many resamples stands in for the sampling distribution
  • 16. Bootstrapping Indirect Effects • Create 1000s of simulated datasets using re- sampling with replacement – Pretends as though your sample is the population, and you simulate other samples from that. • Run the analysis once in each of these 1000s of samples • Of those analyses, 95% of the generated statistics will fall between two numbers. If zero isn’t in that interval, p < .05!
  • 17. Effect Sizes for Mediation • There are many different ways to calculate effect sizes for mediation analysis (Preacher & Kelly, 2011) • Two simple-to-understand effect size measures are: – Percent mediation (PM) – Completely Standardized Indirect Effect (abcs)
  • 18. Percent Mediation Impulsivity Binge Drinking Enhancement Motives .12* (.05) .25* .28* c-path (c’ path) a-path b-path ab = .25 * .28 = .07 c = .12 PM = .07 / .12 = .583 Interpreted as the percent of the total effect (c) accounted for by your indirect effect (a*b).
  • 19. Note about Percent Mediation… • The direct effect (c’-path) can sometimes be larger than the total effect (c-path) – Inconsistent mediation • In these cases, take the absolute value of c’ before calculating effect size to avoid proportions greater than 1.0.
  • 20. Completely Standardized Indirect Effect • So, it’s just two steps: – 1. Calculate the standardized regression paths for the a and b paths – 2. Multiply them together to get the ES – (So, just standardize your variables before analysis and you can get a 95% CI!) • Is now a standardized version that will be similar in interpretation across measures … but it’s no longer bounded by -1 and 1 like a correlation. Which is the same as …
  • 21. Installing the PROCESS macro in SPSS • Download files from here: – process.spd – http://www.processmacro.org/download.html Once you do this, you’ll get a new analysis you can run under: Analyze  Regression  PROCESS Now every time you open SPSS, you’ll have the option to run mediation analyses!
  • 22. A Sample Model w. Output Conscientious Personality Overall Physical Health Health-Related Behaviours Uses a (fabricated) dataset you can find online here if you want to try it on your own time for practice: http://savvystatistics.com/wp- content/uploads/2015/03/crossroads.2015.data_.csv RQ: Do health related behaviours mediate the relationship between conscientious personality and overall physical health?
  • 23. How to Run in SPSS For basic mediation, use “model 4” Conscientiousness = X Physical health = Y Health-Related Behaviours = M
  • 24. Annotated Output: a, b. c’ paths Coeff = Slope; SE = standard error; t = t-statistic; p = p-value LLCI & ULCI = lower and upper levels for confidence interval a-path b-path c'-path (direct effect)
  • 26. Annotated Output: Effect Size & Significance of Indirect Effect Effect Size 1: abcs (Report the 95% CI For this) Effect Size 2: PM (Don’t use the 95% CI For this) Upper and Lower Bootstrapped 95% CI a*b or “indirect effect” Report the 95% CI for this If the CI for a*b does not include zero, then mediation has occurred!
  • 27. Reporting Mediation Analysis There was a significant indirect effect of conscientiousness on overall physical health through health-related behaviours, ab = 0.21, BCa CI [0.15, 0.26]. The mediator could account for roughly half of the total effect, PM = .44. Conscientious Personality Overall Physical Health Health-Related Behaviours0.52*** 0.39*** 0.26*** (0.47)***
  • 28. Questions / Contact Thank you for your time!  • Email: mackinnon.sean@dal.ca
  • 29. Appendix: Syntax *Make sure to run the process.sps macro first, or this won’t work! *This is an alternative to running using the GUI PROCESS vars = health bfi.c behave /y=health/x=bfi.c/m=behave/w=/z=/v=/q=/ model =4/boot=1000/center=0/hc3=1/effsize=1/ normal=1/coeffci=1/conf=95/percent=0/total=1/ covmy=0/jn=0/quantile =0/plot=0/contrast=0/ decimals=F10.4/covcoeff=0. 2015-03-24