SlideShare uma empresa Scribd logo
1 de 30
A gentle introduction to growth
curves
Dr. Sean P. Mackinnon, Dalhousie University
When to use a growth curve
 Growth curves measure patterns of change over time
 Specifically, mean-level changes over time
 Patterns can be linear, quadratic, cubic, etc.
Time 1 Time 2 Time 3
John 10 7 5
Mary 8 5 4
Zoe 7 9 9
Sarah 5 2 1
Bill 2 4 3
MEAN 6.4 5.4 4.4
Mean-Level Change**
Limitations of RM-ANOVA
 Requires a balanced design (i.e., no missing data)
 Requires equal spacing between time points
 Requires independence of observations (not often
possible in longitudinal data)
 Requires homogeneity of variance
Growth Curves overcome these limitations
 Accounts for missing data using a full information
maximum likelihood (FIML) approach
 Does not require equal spacing between time points
(can specify unequal time points, e.g., 1, 2, 5, 7, 10)
 Does not require independence of observations (can
model different types of correlated error structures)
 Is robust to violations of homogeneity of variance
assumptions required by RM-ANOVA
So… what are growth curves?
 Growth curves are a type of mixed (or multilevel)
model
 Simply put, multilevel models are a way of dealing
with clustered data
 For example…
Level 2
Between-Subjects
(2 Participants)
Level 1
Within-Subjects
(6 measurement
occasions)
Participant ID001
(Average)
Participant ID002
(Average)
Growth Curves are Multilevel Models
 All multilevel models (MLMs) partition variance into
their appropriate levels
 E.g., students nested within schools
 Multilevel models also use maximum likelihood
estimation, which is better when there’s missing data
and are more flexible when dealing with real data
 Growth curves are a specific type of MLM where:
 The lowest level of observation is repeated measures
 The predictor variable is TIME
Application to a clinical context
 The RCT is a
common
design
 Growth curves
can be used
instead of
ANOVA
 The time*interv
interaction is
most important
Leiter et al., 2012
How do you do this in SPSS?
 First, you need to convert your data from “WIDE”
format to “LONG” format
Wide Format
Long Format
 (Use the syntax provided in the handout to get this):
Long Format
Coding the Time Variable is Important
 The choices you make for your time variable will
influence your analyses!
 If relationships are linear, need to be equidistant
 1, 2, 3 OR -1, 0, 1, etc.
 If you are expecting a quadratic relationship, need to also
calculate time-squared
 1, 4, 9 OR 1, 0, 1
 Unequal time points
 1 month, 3 month, 12 month
 1, 3, 12
Decision 1: ML vs REML
 Maximum Likelihood Estimation (ML)
vs
 Restricted Maximum Likelihood Estimation (REML)
 REML is generally preferred because it provides
more unbiased estimates
 ML would be preferred if you need to compare
nested models, as REML is not adequate for this
Decision 2: Fixed vs Random
 Random vs. Fixed Slopes & Intercepts
 Random (varying): Allow to vary across people
 Fixed (constant): Force them to be equal across people
 Random vs. Fixed has no single, agreed-upon
definition (Gelman, 2005); I’m presenting a practical
conceptualization
 Fixed (constant) intercepts and slopes are more
parsimonious and less computationally intensive, but
may not be as good a fit to the data. Select the most
parsimonious model that fits the data best.
Random (varying) Intercepts
Random (varying) Slopes
http://www.spss.ch/upload/1126184451_Linear%20Mixed%20Effects%20Modeling%20in%20SPSS.pdf
Random (varying) Intercepts
Fixed (constant) Slopes
http://www.spss.ch/upload/1126184451_Linear%20Mixed%20Effects%20Modeling%20in%20SPSS.pdf
Fixed (constant) Intercepts
Random (varying) Slopes
http://www.spss.ch/upload/1126184451_Linear%20Mixed%20Effects%20Modeling%20in%20SPSS.pdf
Decision 3: Linear, Quadratic, or Cubic?
 If slopes are allowed to be random (varying), then
you need at least:
 3 time points for linear
 4 time points for quadratic
 Add time*time as a predictor
 5 time points for cubic
 Add time*time and time*time*time as predictors
 One less time point needed if using fixed slopes
 Today, I’m focusing on LINEAR relationships
Decision 4: Covariance Structure
 Is there a predictable pattern to the errors?
 If you are unsure, specify an “unstructured” matrix
 Less parsimony because it lets things freely vary
 AR(1) correlated error structure is also fairly common
 Autoregressive correlated errors, getting smaller as
timepoints get more distant
 You can test multiple models with different plausible
structures, and choose the one that fits the data best
Annotated Syntax
MIXED ASItotal WITH time interv
/METHOD = REML
/FIXED = time interv time*interv | SSTYPE(3)
/RANDOM = INTERCEPT time interv |
SUBJECT(id) COVTYPE(UN)
/PRINT = SOLUTION TESTCOV HISTORY.
*Mixed model, dependant variable
predicted by time and intervention
*Restricted Maximum Likelihood
Estimation (usually better than ML)
*Put all predictors after FIXED.
Indicate interactions by Var1*Var2
*The intercept, and the slopes for
time and interv are random. The
slope for the interaction is fixed
because I omitted it from this part.
*”UN” Specifies an unstructured
covariance matrix (other types are
possible, but require thought)
Annotated Output: Model Comparison
 Use the BIC values to compare nested models (e.g.,
random slopes vs fixed slopes)
 Lower absolute values are better (∆BIC > 4)
Annotated Output: Covariance Parameters
 UN(1,1) = Variance of the Intercept. Significant, so
random intercepts are important to include.
 UN(2,2) = Variance of the slope for time. Non-significant,
which suggests that a more parsimonious model with
fixed slopes for time would fit the data better.
Annotated Output
 Interpret like ANOVA; parameters adjusted for clustering
 Time -> Main effect for time (linear, in this case)
 Interv -> Main effect for intervention
 Time * interv -> 2-way Interaction
 Graphing the interaction is usually important to understand
 Dummy coding (0, 1) intervention helps a LOT
Graphing the interaction
Can graph the interaction
using tools meant for
moderation in linear
regression with this kind of
model
The parameters in the output
are interpreted the same way,
they’re just adjusted so that
you’re accounting for the
clustering due to repeated
measurement and missing
data
http://www.jeremydawson.co.
uk/slopes.htm
A few closing points
 Other software can implement this (e.g., SAS,
Mplus, HLM)
 Non-normal data may be better modeled with
different distributional assumptions (e.g., poisson)
 Modeling of covariance structures may be important,
but can be challenging to figure out
 Some programs (e.g., Mplus) may use a latent
variable approach
Questions? Comments?
Thank you! 
P.S. In the handout I provided, there is some syntax
and instructions which may be helpful!
Email me if you want an electronic copy of the
presentation:
mackinnon.sean@dal.ca
Appendix: Syntax
*Convert data from LONG to WIDE format
SORT CASES BY id time.
CASESTOVARS
/ID=id
/INDEX=time
/GROUPBY=VARIABLE.
*Convert data from WIDE to LONG format
VARSTOCASES
/MAKE ASItotal FROM ASItotal.0 ASItotal.1 ASItotal.2
/INDEX=time(3)
/KEEP=id interv
/NULL=KEEP.
Appendix: Syntax
*Linear Growth Curve with Intervention Group as
Moderator (Random Intercept, Random Slopes)
MIXED ASItotal WITH time interv
/METHOD = REML
/FIXED = time interv time*interv | SSTYPE(3)
/RANDOM = INTERCEPT time interv time*interv |
SUBJECT(id) COVTYPE(UN)
/PRINT = SOLUTION TESTCOV HISTORY.
Appendix: Syntax
*Linear Growth Curve with Intervention Group as
Moderator (Random Intercept, Fixed Slopes)
MIXED ASItotal WITH time interv
/METHOD = REML
/FIXED = time interv time*interv | SSTYPE(3)
/RANDOM = INTERCEPT | SUBJECT(id)
COVTYPE(UN)
/PRINT = SOLUTION TESTCOV HISTORY.
Appendix: Syntax
*Linear Growth Curve with Intervention Group as
Moderator (Fixed Intercept, Random Slopes)
MIXED ASItotal WITH time interv
/METHOD = REML
/FIXED = time interv time*interv | SSTYPE(3)
/RANDOM = time interv time*interv | SUBJECT(id)
COVTYPE(UN)
/PRINT = SOLUTION TESTCOV HISTORY.
Appendix: Syntax
*Quadratic Growth Curve with Intervention Group as
Moderator (Random Intercept, Fixed Slopes)
COMPUTE quadtime = time*time.
EXECUTE.
MIXED ASItotal WITH time interv
/METHOD = REML
/FIXED = time quadtime interv time*interv quadtime*interv |
SSTYPE(3)
/RANDOM = INTERCEPT | SUBJECT(id) COVTYPE(UN)
/PRINT = SOLUTION TESTCOV HISTORY.

Mais conteúdo relacionado

Mais procurados

Discriminant analysis
Discriminant analysisDiscriminant analysis
Discriminant analysisMurali Raj
 
One Way Anova
One Way AnovaOne Way Anova
One Way Anovashoffma5
 
Reporting an ANCOVA
Reporting an ANCOVAReporting an ANCOVA
Reporting an ANCOVAKen Plummer
 
Chap15 analysis of variance
Chap15 analysis of varianceChap15 analysis of variance
Chap15 analysis of varianceJudianto Nugroho
 
Measures of Dispersion
Measures of DispersionMeasures of Dispersion
Measures of DispersionKainatIqbal7
 
Anova, ancova, manova thiyagu
Anova, ancova, manova   thiyaguAnova, ancova, manova   thiyagu
Anova, ancova, manova thiyaguThiyagu K
 
Reporting a one way repeated measures anova
Reporting a one way repeated measures anovaReporting a one way repeated measures anova
Reporting a one way repeated measures anovaKen Plummer
 
One way anova final ppt.
One way anova final ppt.One way anova final ppt.
One way anova final ppt.Aadab Mushrib
 
multiple linear regression in spss (procedure and output)
multiple linear regression in spss (procedure and output)multiple linear regression in spss (procedure and output)
multiple linear regression in spss (procedure and output)Unexplord Solutions LLP
 
Analysis of variance (ANOVA) everything you need to know
Analysis of variance (ANOVA) everything you need to knowAnalysis of variance (ANOVA) everything you need to know
Analysis of variance (ANOVA) everything you need to knowStat Analytica
 
Measure of Dispersion
Measure of DispersionMeasure of Dispersion
Measure of Dispersionsonia gupta
 
Statistical Package for Social Science (SPSS)
Statistical Package for Social Science (SPSS)Statistical Package for Social Science (SPSS)
Statistical Package for Social Science (SPSS)sspink
 
9. basic concepts_of_one_way_analysis_of_variance_(anova)
9. basic concepts_of_one_way_analysis_of_variance_(anova)9. basic concepts_of_one_way_analysis_of_variance_(anova)
9. basic concepts_of_one_way_analysis_of_variance_(anova)Irfan Hussain
 
Parametric test - t Test, ANOVA, ANCOVA, MANOVA
Parametric test  - t Test, ANOVA, ANCOVA, MANOVAParametric test  - t Test, ANOVA, ANCOVA, MANOVA
Parametric test - t Test, ANOVA, ANCOVA, MANOVAPrincy Francis M
 
Analysis of variance
Analysis of varianceAnalysis of variance
Analysis of varianceRavi Rohilla
 
Null hypothesis for an ANCOVA
Null hypothesis for an ANCOVANull hypothesis for an ANCOVA
Null hypothesis for an ANCOVAKen Plummer
 
Manova ppt
Manova pptManova ppt
Manova pptAnupVs2
 
Friedman Test- A Presentation
Friedman Test- A PresentationFriedman Test- A Presentation
Friedman Test- A PresentationIrene Gabiana
 

Mais procurados (20)

Discriminant analysis
Discriminant analysisDiscriminant analysis
Discriminant analysis
 
One Way Anova
One Way AnovaOne Way Anova
One Way Anova
 
Reporting an ANCOVA
Reporting an ANCOVAReporting an ANCOVA
Reporting an ANCOVA
 
Chap15 analysis of variance
Chap15 analysis of varianceChap15 analysis of variance
Chap15 analysis of variance
 
Measures of Dispersion
Measures of DispersionMeasures of Dispersion
Measures of Dispersion
 
Chi square mahmoud
Chi square mahmoudChi square mahmoud
Chi square mahmoud
 
Anova, ancova, manova thiyagu
Anova, ancova, manova   thiyaguAnova, ancova, manova   thiyagu
Anova, ancova, manova thiyagu
 
Reporting a one way repeated measures anova
Reporting a one way repeated measures anovaReporting a one way repeated measures anova
Reporting a one way repeated measures anova
 
One way anova final ppt.
One way anova final ppt.One way anova final ppt.
One way anova final ppt.
 
multiple linear regression in spss (procedure and output)
multiple linear regression in spss (procedure and output)multiple linear regression in spss (procedure and output)
multiple linear regression in spss (procedure and output)
 
Analysis of variance (ANOVA) everything you need to know
Analysis of variance (ANOVA) everything you need to knowAnalysis of variance (ANOVA) everything you need to know
Analysis of variance (ANOVA) everything you need to know
 
Measure of Dispersion
Measure of DispersionMeasure of Dispersion
Measure of Dispersion
 
Statistical Package for Social Science (SPSS)
Statistical Package for Social Science (SPSS)Statistical Package for Social Science (SPSS)
Statistical Package for Social Science (SPSS)
 
Variability
VariabilityVariability
Variability
 
9. basic concepts_of_one_way_analysis_of_variance_(anova)
9. basic concepts_of_one_way_analysis_of_variance_(anova)9. basic concepts_of_one_way_analysis_of_variance_(anova)
9. basic concepts_of_one_way_analysis_of_variance_(anova)
 
Parametric test - t Test, ANOVA, ANCOVA, MANOVA
Parametric test  - t Test, ANOVA, ANCOVA, MANOVAParametric test  - t Test, ANOVA, ANCOVA, MANOVA
Parametric test - t Test, ANOVA, ANCOVA, MANOVA
 
Analysis of variance
Analysis of varianceAnalysis of variance
Analysis of variance
 
Null hypothesis for an ANCOVA
Null hypothesis for an ANCOVANull hypothesis for an ANCOVA
Null hypothesis for an ANCOVA
 
Manova ppt
Manova pptManova ppt
Manova ppt
 
Friedman Test- A Presentation
Friedman Test- A PresentationFriedman Test- A Presentation
Friedman Test- A Presentation
 

Semelhante a A gentle introduction to growth curves using SPSS

ders 6 Panel data analysis.pptx
ders 6 Panel data analysis.pptxders 6 Panel data analysis.pptx
ders 6 Panel data analysis.pptxErgin Akalpler
 
RDO_01_2016_Journal_P_Web
RDO_01_2016_Journal_P_WebRDO_01_2016_Journal_P_Web
RDO_01_2016_Journal_P_WebSahl Martin
 
Large Scale Automatic Forecasting for Millions of Forecasts
Large Scale Automatic Forecasting for Millions of ForecastsLarge Scale Automatic Forecasting for Millions of Forecasts
Large Scale Automatic Forecasting for Millions of ForecastsAjay Ohri
 
22_RepeatedMeasuresDesign_Complete.pptx
22_RepeatedMeasuresDesign_Complete.pptx22_RepeatedMeasuresDesign_Complete.pptx
22_RepeatedMeasuresDesign_Complete.pptxMarceloHenriques20
 
Introduction to MARS (1999)
Introduction to MARS (1999)Introduction to MARS (1999)
Introduction to MARS (1999)Salford Systems
 
Poor man's missing value imputation
Poor man's missing value imputationPoor man's missing value imputation
Poor man's missing value imputationLeonardo Auslender
 
CONTINUOUSLY IMPROVE THE PERFORMANCE OF PLANNING AND SCHEDULING MODELS WITH P...
CONTINUOUSLY IMPROVE THE PERFORMANCE OF PLANNING AND SCHEDULING MODELS WITH P...CONTINUOUSLY IMPROVE THE PERFORMANCE OF PLANNING AND SCHEDULING MODELS WITH P...
CONTINUOUSLY IMPROVE THE PERFORMANCE OF PLANNING AND SCHEDULING MODELS WITH P...Alkis Vazacopoulos
 
Chapter 4
Chapter 4Chapter 4
Chapter 4Lem Lem
 
Exploring the Impact of Magnitude- and Direction-based Loss Function on the P...
Exploring the Impact of Magnitude- and Direction-based Loss Function on the P...Exploring the Impact of Magnitude- and Direction-based Loss Function on the P...
Exploring the Impact of Magnitude- and Direction-based Loss Function on the P...Dr. Amarjeet Singh
 
Pentaho Meeting 2008 - Statistics & BI
Pentaho Meeting 2008 - Statistics & BIPentaho Meeting 2008 - Statistics & BI
Pentaho Meeting 2008 - Statistics & BIStudio Synthesis
 
Non-Temporal ARIMA Models in Statistical Research
Non-Temporal ARIMA Models in Statistical ResearchNon-Temporal ARIMA Models in Statistical Research
Non-Temporal ARIMA Models in Statistical ResearchMagnify Analytic Solutions
 
Feature Reduction Techniques
Feature Reduction TechniquesFeature Reduction Techniques
Feature Reduction TechniquesVishal Patel
 
The Treatment of Uncertainty in Models
The Treatment of Uncertainty in ModelsThe Treatment of Uncertainty in Models
The Treatment of Uncertainty in ModelsIES / IAQM
 
Analyzing quantitative data
Analyzing quantitative dataAnalyzing quantitative data
Analyzing quantitative dataBing Villamor
 
Logistic regression - one of the key regression tools in experimental research
Logistic regression - one of the key regression tools in experimental researchLogistic regression - one of the key regression tools in experimental research
Logistic regression - one of the key regression tools in experimental researchAdrian Olszewski
 

Semelhante a A gentle introduction to growth curves using SPSS (20)

ders 6 Panel data analysis.pptx
ders 6 Panel data analysis.pptxders 6 Panel data analysis.pptx
ders 6 Panel data analysis.pptx
 
RDO_01_2016_Journal_P_Web
RDO_01_2016_Journal_P_WebRDO_01_2016_Journal_P_Web
RDO_01_2016_Journal_P_Web
 
Large Scale Automatic Forecasting for Millions of Forecasts
Large Scale Automatic Forecasting for Millions of ForecastsLarge Scale Automatic Forecasting for Millions of Forecasts
Large Scale Automatic Forecasting for Millions of Forecasts
 
22_RepeatedMeasuresDesign_Complete.pptx
22_RepeatedMeasuresDesign_Complete.pptx22_RepeatedMeasuresDesign_Complete.pptx
22_RepeatedMeasuresDesign_Complete.pptx
 
Panel slides
Panel slidesPanel slides
Panel slides
 
Introduction to MARS (1999)
Introduction to MARS (1999)Introduction to MARS (1999)
Introduction to MARS (1999)
 
Poor man's missing value imputation
Poor man's missing value imputationPoor man's missing value imputation
Poor man's missing value imputation
 
CONTINUOUSLY IMPROVE THE PERFORMANCE OF PLANNING AND SCHEDULING MODELS WITH P...
CONTINUOUSLY IMPROVE THE PERFORMANCE OF PLANNING AND SCHEDULING MODELS WITH P...CONTINUOUSLY IMPROVE THE PERFORMANCE OF PLANNING AND SCHEDULING MODELS WITH P...
CONTINUOUSLY IMPROVE THE PERFORMANCE OF PLANNING AND SCHEDULING MODELS WITH P...
 
Chapter 4
Chapter 4Chapter 4
Chapter 4
 
panel data.ppt
panel data.pptpanel data.ppt
panel data.ppt
 
Paper473
Paper473Paper473
Paper473
 
Time Series FORECASTING
Time Series FORECASTINGTime Series FORECASTING
Time Series FORECASTING
 
Exploring the Impact of Magnitude- and Direction-based Loss Function on the P...
Exploring the Impact of Magnitude- and Direction-based Loss Function on the P...Exploring the Impact of Magnitude- and Direction-based Loss Function on the P...
Exploring the Impact of Magnitude- and Direction-based Loss Function on the P...
 
Pentaho Meeting 2008 - Statistics & BI
Pentaho Meeting 2008 - Statistics & BIPentaho Meeting 2008 - Statistics & BI
Pentaho Meeting 2008 - Statistics & BI
 
Non-Temporal ARIMA Models in Statistical Research
Non-Temporal ARIMA Models in Statistical ResearchNon-Temporal ARIMA Models in Statistical Research
Non-Temporal ARIMA Models in Statistical Research
 
Feature Reduction Techniques
Feature Reduction TechniquesFeature Reduction Techniques
Feature Reduction Techniques
 
Sustainable arbitrage based on long-term memory via SEV
Sustainable arbitrage based on long-term memory via SEVSustainable arbitrage based on long-term memory via SEV
Sustainable arbitrage based on long-term memory via SEV
 
The Treatment of Uncertainty in Models
The Treatment of Uncertainty in ModelsThe Treatment of Uncertainty in Models
The Treatment of Uncertainty in Models
 
Analyzing quantitative data
Analyzing quantitative dataAnalyzing quantitative data
Analyzing quantitative data
 
Logistic regression - one of the key regression tools in experimental research
Logistic regression - one of the key regression tools in experimental researchLogistic regression - one of the key regression tools in experimental research
Logistic regression - one of the key regression tools in experimental research
 

Mais de 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 educationsmackinnon
 
One-Way ANOVA: Conceptual Foundations
One-Way ANOVA: Conceptual FoundationsOne-Way ANOVA: Conceptual Foundations
One-Way ANOVA: Conceptual Foundationssmackinnon
 
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 Designssmackinnon
 
Increasing Power without Increasing Sample Size
Increasing Power without Increasing Sample SizeIncreasing Power without Increasing Sample Size
Increasing Power without Increasing Sample Sizesmackinnon
 
Introduction to Mediation using SPSS
Introduction to Mediation using SPSSIntroduction to Mediation using SPSS
Introduction to Mediation using SPSSsmackinnon
 
Basics of Structural Equation Modeling
Basics of Structural Equation ModelingBasics of Structural Equation Modeling
Basics of Structural Equation Modelingsmackinnon
 

Mais de 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
 
Introduction to Mediation using SPSS
Introduction to Mediation using SPSSIntroduction to Mediation using SPSS
Introduction to Mediation using SPSS
 
Basics of Structural Equation Modeling
Basics of Structural Equation ModelingBasics of Structural Equation Modeling
Basics of Structural Equation Modeling
 

Último

Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...Boston Institute of Analytics
 
Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Custo...
Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Custo...Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Custo...
Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Custo...Boston Institute of Analytics
 
wepik-insightful-infographics-a-data-visualization-overview-20240401133220kwr...
wepik-insightful-infographics-a-data-visualization-overview-20240401133220kwr...wepik-insightful-infographics-a-data-visualization-overview-20240401133220kwr...
wepik-insightful-infographics-a-data-visualization-overview-20240401133220kwr...KarteekMane1
 
Easter Eggs From Star Wars and in cars 1 and 2
Easter Eggs From Star Wars and in cars 1 and 2Easter Eggs From Star Wars and in cars 1 and 2
Easter Eggs From Star Wars and in cars 1 and 217djon017
 
Bank Loan Approval Analysis: A Comprehensive Data Analysis Project
Bank Loan Approval Analysis: A Comprehensive Data Analysis ProjectBank Loan Approval Analysis: A Comprehensive Data Analysis Project
Bank Loan Approval Analysis: A Comprehensive Data Analysis ProjectBoston Institute of Analytics
 
Real-Time AI Streaming - AI Max Princeton
Real-Time AI  Streaming - AI Max PrincetonReal-Time AI  Streaming - AI Max Princeton
Real-Time AI Streaming - AI Max PrincetonTimothy Spann
 
Conf42-LLM_Adding Generative AI to Real-Time Streaming Pipelines
Conf42-LLM_Adding Generative AI to Real-Time Streaming PipelinesConf42-LLM_Adding Generative AI to Real-Time Streaming Pipelines
Conf42-LLM_Adding Generative AI to Real-Time Streaming PipelinesTimothy Spann
 
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024Susanna-Assunta Sansone
 
Defining Constituents, Data Vizzes and Telling a Data Story
Defining Constituents, Data Vizzes and Telling a Data StoryDefining Constituents, Data Vizzes and Telling a Data Story
Defining Constituents, Data Vizzes and Telling a Data StoryJeremy Anderson
 
Networking Case Study prepared by teacher.pptx
Networking Case Study prepared by teacher.pptxNetworking Case Study prepared by teacher.pptx
Networking Case Study prepared by teacher.pptxHimangsuNath
 
Digital Marketing Plan, how digital marketing works
Digital Marketing Plan, how digital marketing worksDigital Marketing Plan, how digital marketing works
Digital Marketing Plan, how digital marketing worksdeepakthakur548787
 
SMOTE and K-Fold Cross Validation-Presentation.pptx
SMOTE and K-Fold Cross Validation-Presentation.pptxSMOTE and K-Fold Cross Validation-Presentation.pptx
SMOTE and K-Fold Cross Validation-Presentation.pptxHaritikaChhatwal1
 
modul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptxmodul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptxaleedritatuxx
 
Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)Cathrine Wilhelmsen
 
Student profile product demonstration on grades, ability, well-being and mind...
Student profile product demonstration on grades, ability, well-being and mind...Student profile product demonstration on grades, ability, well-being and mind...
Student profile product demonstration on grades, ability, well-being and mind...Seán Kennedy
 
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...Boston Institute of Analytics
 
6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...
6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...
6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...Dr Arash Najmaei ( Phd., MBA, BSc)
 
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...Thomas Poetter
 
What To Do For World Nature Conservation Day by Slidesgo.pptx
What To Do For World Nature Conservation Day by Slidesgo.pptxWhat To Do For World Nature Conservation Day by Slidesgo.pptx
What To Do For World Nature Conservation Day by Slidesgo.pptxSimranPal17
 

Último (20)

Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
 
Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Custo...
Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Custo...Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Custo...
Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Custo...
 
wepik-insightful-infographics-a-data-visualization-overview-20240401133220kwr...
wepik-insightful-infographics-a-data-visualization-overview-20240401133220kwr...wepik-insightful-infographics-a-data-visualization-overview-20240401133220kwr...
wepik-insightful-infographics-a-data-visualization-overview-20240401133220kwr...
 
Easter Eggs From Star Wars and in cars 1 and 2
Easter Eggs From Star Wars and in cars 1 and 2Easter Eggs From Star Wars and in cars 1 and 2
Easter Eggs From Star Wars and in cars 1 and 2
 
Bank Loan Approval Analysis: A Comprehensive Data Analysis Project
Bank Loan Approval Analysis: A Comprehensive Data Analysis ProjectBank Loan Approval Analysis: A Comprehensive Data Analysis Project
Bank Loan Approval Analysis: A Comprehensive Data Analysis Project
 
Real-Time AI Streaming - AI Max Princeton
Real-Time AI  Streaming - AI Max PrincetonReal-Time AI  Streaming - AI Max Princeton
Real-Time AI Streaming - AI Max Princeton
 
Conf42-LLM_Adding Generative AI to Real-Time Streaming Pipelines
Conf42-LLM_Adding Generative AI to Real-Time Streaming PipelinesConf42-LLM_Adding Generative AI to Real-Time Streaming Pipelines
Conf42-LLM_Adding Generative AI to Real-Time Streaming Pipelines
 
Insurance Churn Prediction Data Analysis Project
Insurance Churn Prediction Data Analysis ProjectInsurance Churn Prediction Data Analysis Project
Insurance Churn Prediction Data Analysis Project
 
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024
 
Defining Constituents, Data Vizzes and Telling a Data Story
Defining Constituents, Data Vizzes and Telling a Data StoryDefining Constituents, Data Vizzes and Telling a Data Story
Defining Constituents, Data Vizzes and Telling a Data Story
 
Networking Case Study prepared by teacher.pptx
Networking Case Study prepared by teacher.pptxNetworking Case Study prepared by teacher.pptx
Networking Case Study prepared by teacher.pptx
 
Digital Marketing Plan, how digital marketing works
Digital Marketing Plan, how digital marketing worksDigital Marketing Plan, how digital marketing works
Digital Marketing Plan, how digital marketing works
 
SMOTE and K-Fold Cross Validation-Presentation.pptx
SMOTE and K-Fold Cross Validation-Presentation.pptxSMOTE and K-Fold Cross Validation-Presentation.pptx
SMOTE and K-Fold Cross Validation-Presentation.pptx
 
modul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptxmodul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptx
 
Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)
 
Student profile product demonstration on grades, ability, well-being and mind...
Student profile product demonstration on grades, ability, well-being and mind...Student profile product demonstration on grades, ability, well-being and mind...
Student profile product demonstration on grades, ability, well-being and mind...
 
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...
 
6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...
6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...
6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...
 
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
 
What To Do For World Nature Conservation Day by Slidesgo.pptx
What To Do For World Nature Conservation Day by Slidesgo.pptxWhat To Do For World Nature Conservation Day by Slidesgo.pptx
What To Do For World Nature Conservation Day by Slidesgo.pptx
 

A gentle introduction to growth curves using SPSS

  • 1. A gentle introduction to growth curves Dr. Sean P. Mackinnon, Dalhousie University
  • 2. When to use a growth curve  Growth curves measure patterns of change over time  Specifically, mean-level changes over time  Patterns can be linear, quadratic, cubic, etc. Time 1 Time 2 Time 3 John 10 7 5 Mary 8 5 4 Zoe 7 9 9 Sarah 5 2 1 Bill 2 4 3 MEAN 6.4 5.4 4.4 Mean-Level Change**
  • 3. Limitations of RM-ANOVA  Requires a balanced design (i.e., no missing data)  Requires equal spacing between time points  Requires independence of observations (not often possible in longitudinal data)  Requires homogeneity of variance
  • 4. Growth Curves overcome these limitations  Accounts for missing data using a full information maximum likelihood (FIML) approach  Does not require equal spacing between time points (can specify unequal time points, e.g., 1, 2, 5, 7, 10)  Does not require independence of observations (can model different types of correlated error structures)  Is robust to violations of homogeneity of variance assumptions required by RM-ANOVA
  • 5. So… what are growth curves?  Growth curves are a type of mixed (or multilevel) model  Simply put, multilevel models are a way of dealing with clustered data  For example…
  • 6. Level 2 Between-Subjects (2 Participants) Level 1 Within-Subjects (6 measurement occasions) Participant ID001 (Average) Participant ID002 (Average)
  • 7. Growth Curves are Multilevel Models  All multilevel models (MLMs) partition variance into their appropriate levels  E.g., students nested within schools  Multilevel models also use maximum likelihood estimation, which is better when there’s missing data and are more flexible when dealing with real data  Growth curves are a specific type of MLM where:  The lowest level of observation is repeated measures  The predictor variable is TIME
  • 8. Application to a clinical context  The RCT is a common design  Growth curves can be used instead of ANOVA  The time*interv interaction is most important Leiter et al., 2012
  • 9. How do you do this in SPSS?  First, you need to convert your data from “WIDE” format to “LONG” format Wide Format
  • 10. Long Format  (Use the syntax provided in the handout to get this): Long Format
  • 11. Coding the Time Variable is Important  The choices you make for your time variable will influence your analyses!  If relationships are linear, need to be equidistant  1, 2, 3 OR -1, 0, 1, etc.  If you are expecting a quadratic relationship, need to also calculate time-squared  1, 4, 9 OR 1, 0, 1  Unequal time points  1 month, 3 month, 12 month  1, 3, 12
  • 12. Decision 1: ML vs REML  Maximum Likelihood Estimation (ML) vs  Restricted Maximum Likelihood Estimation (REML)  REML is generally preferred because it provides more unbiased estimates  ML would be preferred if you need to compare nested models, as REML is not adequate for this
  • 13. Decision 2: Fixed vs Random  Random vs. Fixed Slopes & Intercepts  Random (varying): Allow to vary across people  Fixed (constant): Force them to be equal across people  Random vs. Fixed has no single, agreed-upon definition (Gelman, 2005); I’m presenting a practical conceptualization  Fixed (constant) intercepts and slopes are more parsimonious and less computationally intensive, but may not be as good a fit to the data. Select the most parsimonious model that fits the data best.
  • 14. Random (varying) Intercepts Random (varying) Slopes http://www.spss.ch/upload/1126184451_Linear%20Mixed%20Effects%20Modeling%20in%20SPSS.pdf
  • 15. Random (varying) Intercepts Fixed (constant) Slopes http://www.spss.ch/upload/1126184451_Linear%20Mixed%20Effects%20Modeling%20in%20SPSS.pdf
  • 16. Fixed (constant) Intercepts Random (varying) Slopes http://www.spss.ch/upload/1126184451_Linear%20Mixed%20Effects%20Modeling%20in%20SPSS.pdf
  • 17. Decision 3: Linear, Quadratic, or Cubic?  If slopes are allowed to be random (varying), then you need at least:  3 time points for linear  4 time points for quadratic  Add time*time as a predictor  5 time points for cubic  Add time*time and time*time*time as predictors  One less time point needed if using fixed slopes  Today, I’m focusing on LINEAR relationships
  • 18. Decision 4: Covariance Structure  Is there a predictable pattern to the errors?  If you are unsure, specify an “unstructured” matrix  Less parsimony because it lets things freely vary  AR(1) correlated error structure is also fairly common  Autoregressive correlated errors, getting smaller as timepoints get more distant  You can test multiple models with different plausible structures, and choose the one that fits the data best
  • 19. Annotated Syntax MIXED ASItotal WITH time interv /METHOD = REML /FIXED = time interv time*interv | SSTYPE(3) /RANDOM = INTERCEPT time interv | SUBJECT(id) COVTYPE(UN) /PRINT = SOLUTION TESTCOV HISTORY. *Mixed model, dependant variable predicted by time and intervention *Restricted Maximum Likelihood Estimation (usually better than ML) *Put all predictors after FIXED. Indicate interactions by Var1*Var2 *The intercept, and the slopes for time and interv are random. The slope for the interaction is fixed because I omitted it from this part. *”UN” Specifies an unstructured covariance matrix (other types are possible, but require thought)
  • 20. Annotated Output: Model Comparison  Use the BIC values to compare nested models (e.g., random slopes vs fixed slopes)  Lower absolute values are better (∆BIC > 4)
  • 21. Annotated Output: Covariance Parameters  UN(1,1) = Variance of the Intercept. Significant, so random intercepts are important to include.  UN(2,2) = Variance of the slope for time. Non-significant, which suggests that a more parsimonious model with fixed slopes for time would fit the data better.
  • 22. Annotated Output  Interpret like ANOVA; parameters adjusted for clustering  Time -> Main effect for time (linear, in this case)  Interv -> Main effect for intervention  Time * interv -> 2-way Interaction  Graphing the interaction is usually important to understand  Dummy coding (0, 1) intervention helps a LOT
  • 23. Graphing the interaction Can graph the interaction using tools meant for moderation in linear regression with this kind of model The parameters in the output are interpreted the same way, they’re just adjusted so that you’re accounting for the clustering due to repeated measurement and missing data http://www.jeremydawson.co. uk/slopes.htm
  • 24. A few closing points  Other software can implement this (e.g., SAS, Mplus, HLM)  Non-normal data may be better modeled with different distributional assumptions (e.g., poisson)  Modeling of covariance structures may be important, but can be challenging to figure out  Some programs (e.g., Mplus) may use a latent variable approach
  • 25. Questions? Comments? Thank you!  P.S. In the handout I provided, there is some syntax and instructions which may be helpful! Email me if you want an electronic copy of the presentation: mackinnon.sean@dal.ca
  • 26. Appendix: Syntax *Convert data from LONG to WIDE format SORT CASES BY id time. CASESTOVARS /ID=id /INDEX=time /GROUPBY=VARIABLE. *Convert data from WIDE to LONG format VARSTOCASES /MAKE ASItotal FROM ASItotal.0 ASItotal.1 ASItotal.2 /INDEX=time(3) /KEEP=id interv /NULL=KEEP.
  • 27. Appendix: Syntax *Linear Growth Curve with Intervention Group as Moderator (Random Intercept, Random Slopes) MIXED ASItotal WITH time interv /METHOD = REML /FIXED = time interv time*interv | SSTYPE(3) /RANDOM = INTERCEPT time interv time*interv | SUBJECT(id) COVTYPE(UN) /PRINT = SOLUTION TESTCOV HISTORY.
  • 28. Appendix: Syntax *Linear Growth Curve with Intervention Group as Moderator (Random Intercept, Fixed Slopes) MIXED ASItotal WITH time interv /METHOD = REML /FIXED = time interv time*interv | SSTYPE(3) /RANDOM = INTERCEPT | SUBJECT(id) COVTYPE(UN) /PRINT = SOLUTION TESTCOV HISTORY.
  • 29. Appendix: Syntax *Linear Growth Curve with Intervention Group as Moderator (Fixed Intercept, Random Slopes) MIXED ASItotal WITH time interv /METHOD = REML /FIXED = time interv time*interv | SSTYPE(3) /RANDOM = time interv time*interv | SUBJECT(id) COVTYPE(UN) /PRINT = SOLUTION TESTCOV HISTORY.
  • 30. Appendix: Syntax *Quadratic Growth Curve with Intervention Group as Moderator (Random Intercept, Fixed Slopes) COMPUTE quadtime = time*time. EXECUTE. MIXED ASItotal WITH time interv /METHOD = REML /FIXED = time quadtime interv time*interv quadtime*interv | SSTYPE(3) /RANDOM = INTERCEPT | SUBJECT(id) COVTYPE(UN) /PRINT = SOLUTION TESTCOV HISTORY.