SlideShare a Scribd company logo
1 of 56
Download to read offline
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Introduction to Longitudinal Data Analysis
Christopher David Desjardins
Chu-Ting Chung
Jeffrey D. Long
11 January 2010
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Outline
1 Introduction
2 Benefits
3 Synonyms
4 Formula and Assumptions
5 LMMs in R
6 Getting Help
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
What is Longitudinal Data?
The defining characteristic of longitudinal studies is that
individuals are measured repeatedly through time.
In contrast, cross-sectional studies involve collecting
measurements on an individual only once.
Concerned with mean change over time.
Longitudinal studies allow examination of age and cohort
effects.
Longitudinal studies can distinguish changes over time within
individuals (aging effects) from differences among people in
their baseline levels (cohort effects).
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
What is Longitudinal Data?
The defining characteristic of longitudinal studies is that
individuals are measured repeatedly through time.
In contrast, cross-sectional studies involve collecting
measurements on an individual only once.
Concerned with mean change over time.
Longitudinal studies allow examination of age and cohort
effects.
Longitudinal studies can distinguish changes over time within
individuals (aging effects) from differences among people in
their baseline levels (cohort effects).
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
What is Longitudinal Data?
The defining characteristic of longitudinal studies is that
individuals are measured repeatedly through time.
In contrast, cross-sectional studies involve collecting
measurements on an individual only once.
Concerned with mean change over time.
Longitudinal studies allow examination of age and cohort
effects.
Longitudinal studies can distinguish changes over time within
individuals (aging effects) from differences among people in
their baseline levels (cohort effects).
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
What is Longitudinal Data?
The defining characteristic of longitudinal studies is that
individuals are measured repeatedly through time.
In contrast, cross-sectional studies involve collecting
measurements on an individual only once.
Concerned with mean change over time.
Longitudinal studies allow examination of age and cohort
effects.
Longitudinal studies can distinguish changes over time within
individuals (aging effects) from differences among people in
their baseline levels (cohort effects).
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
What is Longitudinal Data?
The defining characteristic of longitudinal studies is that
individuals are measured repeatedly through time.
In contrast, cross-sectional studies involve collecting
measurements on an individual only once.
Concerned with mean change over time.
Longitudinal studies allow examination of age and cohort
effects.
Longitudinal studies can distinguish changes over time within
individuals (aging effects) from differences among people in
their baseline levels (cohort effects).
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Age or cohort effects?
Age
Reading
95
100
105
110
115
120
125
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
8 10 12 14 16 18
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Age or cohort effects?
Age
Reading
95
100
105
110
115
120
125
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
●
8 10 12 14 16 18
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Age or cohort effects?
Age
Reading
95
100
105
110
115
120
125
8 10 12 14 16 18
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Benefits of Linear Mixed Models
Fit intercepts and slopes for individuals
Accounts for correlations between time points
Accommodates missing data
Accommodates measurements at unequal intervals
Relatively few parameters required to account for dependency
due to repeated measures
Can handle both continuous and categorical covariates
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Benefits of Linear Mixed Models
Fit intercepts and slopes for individuals
Accounts for correlations between time points
Accommodates missing data
Accommodates measurements at unequal intervals
Relatively few parameters required to account for dependency
due to repeated measures
Can handle both continuous and categorical covariates
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Benefits of Linear Mixed Models
Fit intercepts and slopes for individuals
Accounts for correlations between time points
Accommodates missing data
Accommodates measurements at unequal intervals
Relatively few parameters required to account for dependency
due to repeated measures
Can handle both continuous and categorical covariates
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Benefits of Linear Mixed Models
Fit intercepts and slopes for individuals
Accounts for correlations between time points
Accommodates missing data
Accommodates measurements at unequal intervals
Relatively few parameters required to account for dependency
due to repeated measures
Can handle both continuous and categorical covariates
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Benefits of Linear Mixed Models
Fit intercepts and slopes for individuals
Accounts for correlations between time points
Accommodates missing data
Accommodates measurements at unequal intervals
Relatively few parameters required to account for dependency
due to repeated measures
Can handle both continuous and categorical covariates
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Benefits of Linear Mixed Models
Fit intercepts and slopes for individuals
Accounts for correlations between time points
Accommodates missing data
Accommodates measurements at unequal intervals
Relatively few parameters required to account for dependency
due to repeated measures
Can handle both continuous and categorical covariates
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Correlations between time points
Traditional regression does not account for this correlation
This results in bogus standard error estimates and p-values.
This is done in the covariance-variance matrix among the
repeated measures known as Σi
Recall a correlation matrix is a standardized
covariance-variance matrix.
This matrix is involved directly in estimating the parameters
unlike in traditional regression.
This matrix is broken down further and includes the random
effects matrix.
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Correlations between time points
Traditional regression does not account for this correlation
This results in bogus standard error estimates and p-values.
This is done in the covariance-variance matrix among the
repeated measures known as Σi
Recall a correlation matrix is a standardized
covariance-variance matrix.
This matrix is involved directly in estimating the parameters
unlike in traditional regression.
This matrix is broken down further and includes the random
effects matrix.
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Correlations between time points
Traditional regression does not account for this correlation
This results in bogus standard error estimates and p-values.
This is done in the covariance-variance matrix among the
repeated measures known as Σi
Recall a correlation matrix is a standardized
covariance-variance matrix.
This matrix is involved directly in estimating the parameters
unlike in traditional regression.
This matrix is broken down further and includes the random
effects matrix.
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Correlations between time points
Traditional regression does not account for this correlation
This results in bogus standard error estimates and p-values.
This is done in the covariance-variance matrix among the
repeated measures known as Σi
Recall a correlation matrix is a standardized
covariance-variance matrix.
This matrix is involved directly in estimating the parameters
unlike in traditional regression.
This matrix is broken down further and includes the random
effects matrix.
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Correlations between time points
Traditional regression does not account for this correlation
This results in bogus standard error estimates and p-values.
This is done in the covariance-variance matrix among the
repeated measures known as Σi
Recall a correlation matrix is a standardized
covariance-variance matrix.
This matrix is involved directly in estimating the parameters
unlike in traditional regression.
This matrix is broken down further and includes the random
effects matrix.
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Correlations between time points
Traditional regression does not account for this correlation
This results in bogus standard error estimates and p-values.
This is done in the covariance-variance matrix among the
repeated measures known as Σi
Recall a correlation matrix is a standardized
covariance-variance matrix.
This matrix is involved directly in estimating the parameters
unlike in traditional regression.
This matrix is broken down further and includes the random
effects matrix.
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Accomodates missing data
Missing data handled through robust maximum likelihood
estimation
No need for multiple imputation when using continuous
variables
Two types of Maximum Likelihood Estimates
Full Maximum Likelihood
Restricted Maximum Likeihood - provides unbaised variance
estimates
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Accomodates missing data
Missing data handled through robust maximum likelihood
estimation
No need for multiple imputation when using continuous
variables
Two types of Maximum Likelihood Estimates
Full Maximum Likelihood
Restricted Maximum Likeihood - provides unbaised variance
estimates
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Accomodates missing data
Missing data handled through robust maximum likelihood
estimation
No need for multiple imputation when using continuous
variables
Two types of Maximum Likelihood Estimates
Full Maximum Likelihood
Restricted Maximum Likeihood - provides unbaised variance
estimates
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Accomodates missing data
Missing data handled through robust maximum likelihood
estimation
No need for multiple imputation when using continuous
variables
Two types of Maximum Likelihood Estimates
Full Maximum Likelihood
Restricted Maximum Likeihood - provides unbaised variance
estimates
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Accomodates missing data
Missing data handled through robust maximum likelihood
estimation
No need for multiple imputation when using continuous
variables
Two types of Maximum Likelihood Estimates
Full Maximum Likelihood
Restricted Maximum Likeihood - provides unbaised variance
estimates
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Other benefits
Individuals can be measured at different times and do not
need to measured at all times.
Therefore, we do not need to throw out data or impute data
on individuals.
We throw out cases not individuals.
Fewer parameters used in these models than ANOVA and
MANOVA models. This leads to higher statistical power.
Can handle continuous and categorical covariates
simulatenously. No need for a seperate model.
Categorical covariates are dummy coded.
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Other benefits
Individuals can be measured at different times and do not
need to measured at all times.
Therefore, we do not need to throw out data or impute data
on individuals.
We throw out cases not individuals.
Fewer parameters used in these models than ANOVA and
MANOVA models. This leads to higher statistical power.
Can handle continuous and categorical covariates
simulatenously. No need for a seperate model.
Categorical covariates are dummy coded.
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Other benefits
Individuals can be measured at different times and do not
need to measured at all times.
Therefore, we do not need to throw out data or impute data
on individuals.
We throw out cases not individuals.
Fewer parameters used in these models than ANOVA and
MANOVA models. This leads to higher statistical power.
Can handle continuous and categorical covariates
simulatenously. No need for a seperate model.
Categorical covariates are dummy coded.
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Other benefits
Individuals can be measured at different times and do not
need to measured at all times.
Therefore, we do not need to throw out data or impute data
on individuals.
We throw out cases not individuals.
Fewer parameters used in these models than ANOVA and
MANOVA models. This leads to higher statistical power.
Can handle continuous and categorical covariates
simulatenously. No need for a seperate model.
Categorical covariates are dummy coded.
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Other benefits
Individuals can be measured at different times and do not
need to measured at all times.
Therefore, we do not need to throw out data or impute data
on individuals.
We throw out cases not individuals.
Fewer parameters used in these models than ANOVA and
MANOVA models. This leads to higher statistical power.
Can handle continuous and categorical covariates
simulatenously. No need for a seperate model.
Categorical covariates are dummy coded.
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Other benefits
Individuals can be measured at different times and do not
need to measured at all times.
Therefore, we do not need to throw out data or impute data
on individuals.
We throw out cases not individuals.
Fewer parameters used in these models than ANOVA and
MANOVA models. This leads to higher statistical power.
Can handle continuous and categorical covariates
simulatenously. No need for a seperate model.
Categorical covariates are dummy coded.
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Other names for these models
Hierarchical linear models (HLM)
HLM are generally cross-sectional and involve multiple levels,
such as school effects
In longitudinal models, measurements over time are nested
within individuals rather than a school
Linear Mixed Models
Multilevel Models
Mixed Effects Models
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Other names for these models
Hierarchical linear models (HLM)
HLM are generally cross-sectional and involve multiple levels,
such as school effects
In longitudinal models, measurements over time are nested
within individuals rather than a school
Linear Mixed Models
Multilevel Models
Mixed Effects Models
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Other names for these models
Hierarchical linear models (HLM)
HLM are generally cross-sectional and involve multiple levels,
such as school effects
In longitudinal models, measurements over time are nested
within individuals rather than a school
Linear Mixed Models
Multilevel Models
Mixed Effects Models
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Other names for these models
Hierarchical linear models (HLM)
HLM are generally cross-sectional and involve multiple levels,
such as school effects
In longitudinal models, measurements over time are nested
within individuals rather than a school
Linear Mixed Models
Multilevel Models
Mixed Effects Models
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Other names for these models
Hierarchical linear models (HLM)
HLM are generally cross-sectional and involve multiple levels,
such as school effects
In longitudinal models, measurements over time are nested
within individuals rather than a school
Linear Mixed Models
Multilevel Models
Mixed Effects Models
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Other names for these models
Hierarchical linear models (HLM)
HLM are generally cross-sectional and involve multiple levels,
such as school effects
In longitudinal models, measurements over time are nested
within individuals rather than a school
Linear Mixed Models
Multilevel Models
Mixed Effects Models
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
LMM formula
Recall a simple multiple regression model is:
Yi = β0 + β1X1i + β2X2i + ... + βpXpi + ei
In a LMM, a regression model measured j times might become:
Yij = β0 + b0i + β1X1i + (β2 + b2i )tij + eij
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
LMM formula explained
Nomenclature Definition
Yij refers to the outcome variable, e.g. infant’s weight, for
individual i at time j
β0 refers to the intercept
b0i refers to the random intercept for individual i. This
allows individuals to vary in their initial values.
β1X1i the parameter estimate associated with a covariate,
such as primary feeding type.
β2 the fixed effect estimate associated with time
b2i refers to the random slope for individual i.This allows
individuals to vary in their slopes.
tij time variable, months since birth.
eij is the residual error term.
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Assumptions of LMMs
Obseravations of individuals are independent
Random effects are normally distributed
Random residuals are normally distributed
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Assumptions of LMMs
Obseravations of individuals are independent
Random effects are normally distributed
Random residuals are normally distributed
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Assumptions of LMMs
Obseravations of individuals are independent
Random effects are normally distributed
Random residuals are normally distributed
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Running LMMs
Yij = β0 + b0i + (β1 + b1i )tij + eij
Use the {lme4} package in R and the lmer function.
If you can write your model as a LMM then you can program
it in R.
Basic R Formula:
m1 < −lmer(Outcome ∼ 1 + Time + (1 + month|ID), data =
data))
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Running LMMs
Yij = β0 + b0i + (β1 + b1i )tij + eij
Use the {lme4} package in R and the lmer function.
If you can write your model as a LMM then you can program
it in R.
Basic R Formula:
m1 < −lmer(Outcome ∼ 1 + Time + (1 + month|ID), data =
data))
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Running LMMs
Yij = β0 + b0i + (β1 + b1i )tij + eij
Use the {lme4} package in R and the lmer function.
If you can write your model as a LMM then you can program
it in R.
Basic R Formula:
m1 < −lmer(Outcome ∼ 1 + Time + (1 + month|ID), data =
data))
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Running LMMs
> library(lme4)
> data(sleepstudy)
> m1 <- lmer(Reaction ~ 1 + Days + (1 + Days|Subject), sleepstudy)
> summary(m1)
Linear mixed model fit by REML
Formula: Reaction ~ 1 + Days + (1 + Days | Subject)
Data: sleepstudy
AIC BIC logLik deviance REMLdev
1756 1775 -871.8 1752 1744
Random effects:
Groups Name Variance Std.Dev. Corr
Subject (Intercept) 612.090 24.7405
Days 35.072 5.9221 0.066
Residual 654.941 25.5918
Number of obs: 180, groups: Subject, 18
Fixed effects:
Estimate Std. Error t value
(Intercept) 251.405 6.825 36.84
Days 10.467 1.546 6.77
Correlation of Fixed Effects:
(Intr)
Days -0.138
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Getting Help with LMMs and R
Help with LMMs
Fitzmaurice, G. M., Laird, N.M., & Ware, J.H. (2004).
Applied Longitudinal Analysis. Wiley-Interscience.
Diggle, P., Heagerty, P, Liang, K-Y, & Zeger, S. (2002).
Analysis of Longitudinal Data. Oxford University Press.
Gelman, A. & Hill, J. (2006). Data Analysis Using Regression
and Multilevel/Hierarchical Models. Cambridge University
Press.
Help with R and {lme4}.
General R help. www.r-project.org
Nice intro to R. http://cran.r-project.org/doc/
contrib/Verzani-SimpleR.pdf
{lme4} help. Pinheiro, J. C. & Bates, D. (2002). Mixed
Effects Models in S and S-Plus. Springer Press. CAN
DOWNLOAD FROM LIBRARY!
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Getting Help with LMMs and R
Help with LMMs
Fitzmaurice, G. M., Laird, N.M., & Ware, J.H. (2004).
Applied Longitudinal Analysis. Wiley-Interscience.
Diggle, P., Heagerty, P, Liang, K-Y, & Zeger, S. (2002).
Analysis of Longitudinal Data. Oxford University Press.
Gelman, A. & Hill, J. (2006). Data Analysis Using Regression
and Multilevel/Hierarchical Models. Cambridge University
Press.
Help with R and {lme4}.
General R help. www.r-project.org
Nice intro to R. http://cran.r-project.org/doc/
contrib/Verzani-SimpleR.pdf
{lme4} help. Pinheiro, J. C. & Bates, D. (2002). Mixed
Effects Models in S and S-Plus. Springer Press. CAN
DOWNLOAD FROM LIBRARY!
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Getting Help with LMMs and R
Help with LMMs
Fitzmaurice, G. M., Laird, N.M., & Ware, J.H. (2004).
Applied Longitudinal Analysis. Wiley-Interscience.
Diggle, P., Heagerty, P, Liang, K-Y, & Zeger, S. (2002).
Analysis of Longitudinal Data. Oxford University Press.
Gelman, A. & Hill, J. (2006). Data Analysis Using Regression
and Multilevel/Hierarchical Models. Cambridge University
Press.
Help with R and {lme4}.
General R help. www.r-project.org
Nice intro to R. http://cran.r-project.org/doc/
contrib/Verzani-SimpleR.pdf
{lme4} help. Pinheiro, J. C. & Bates, D. (2002). Mixed
Effects Models in S and S-Plus. Springer Press. CAN
DOWNLOAD FROM LIBRARY!
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Getting Help with LMMs and R
Help with LMMs
Fitzmaurice, G. M., Laird, N.M., & Ware, J.H. (2004).
Applied Longitudinal Analysis. Wiley-Interscience.
Diggle, P., Heagerty, P, Liang, K-Y, & Zeger, S. (2002).
Analysis of Longitudinal Data. Oxford University Press.
Gelman, A. & Hill, J. (2006). Data Analysis Using Regression
and Multilevel/Hierarchical Models. Cambridge University
Press.
Help with R and {lme4}.
General R help. www.r-project.org
Nice intro to R. http://cran.r-project.org/doc/
contrib/Verzani-SimpleR.pdf
{lme4} help. Pinheiro, J. C. & Bates, D. (2002). Mixed
Effects Models in S and S-Plus. Springer Press. CAN
DOWNLOAD FROM LIBRARY!
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Getting Help with LMMs and R
Help with LMMs
Fitzmaurice, G. M., Laird, N.M., & Ware, J.H. (2004).
Applied Longitudinal Analysis. Wiley-Interscience.
Diggle, P., Heagerty, P, Liang, K-Y, & Zeger, S. (2002).
Analysis of Longitudinal Data. Oxford University Press.
Gelman, A. & Hill, J. (2006). Data Analysis Using Regression
and Multilevel/Hierarchical Models. Cambridge University
Press.
Help with R and {lme4}.
General R help. www.r-project.org
Nice intro to R. http://cran.r-project.org/doc/
contrib/Verzani-SimpleR.pdf
{lme4} help. Pinheiro, J. C. & Bates, D. (2002). Mixed
Effects Models in S and S-Plus. Springer Press. CAN
DOWNLOAD FROM LIBRARY!
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Getting Help with LMMs and R
Help with LMMs
Fitzmaurice, G. M., Laird, N.M., & Ware, J.H. (2004).
Applied Longitudinal Analysis. Wiley-Interscience.
Diggle, P., Heagerty, P, Liang, K-Y, & Zeger, S. (2002).
Analysis of Longitudinal Data. Oxford University Press.
Gelman, A. & Hill, J. (2006). Data Analysis Using Regression
and Multilevel/Hierarchical Models. Cambridge University
Press.
Help with R and {lme4}.
General R help. www.r-project.org
Nice intro to R. http://cran.r-project.org/doc/
contrib/Verzani-SimpleR.pdf
{lme4} help. Pinheiro, J. C. & Bates, D. (2002). Mixed
Effects Models in S and S-Plus. Springer Press. CAN
DOWNLOAD FROM LIBRARY!
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Getting Help with LMMs and R
Help with LMMs
Fitzmaurice, G. M., Laird, N.M., & Ware, J.H. (2004).
Applied Longitudinal Analysis. Wiley-Interscience.
Diggle, P., Heagerty, P, Liang, K-Y, & Zeger, S. (2002).
Analysis of Longitudinal Data. Oxford University Press.
Gelman, A. & Hill, J. (2006). Data Analysis Using Regression
and Multilevel/Hierarchical Models. Cambridge University
Press.
Help with R and {lme4}.
General R help. www.r-project.org
Nice intro to R. http://cran.r-project.org/doc/
contrib/Verzani-SimpleR.pdf
{lme4} help. Pinheiro, J. C. & Bates, D. (2002). Mixed
Effects Models in S and S-Plus. Springer Press. CAN
DOWNLOAD FROM LIBRARY!
Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help
Getting Help with LMMs and R
Help with LMMs
Fitzmaurice, G. M., Laird, N.M., & Ware, J.H. (2004).
Applied Longitudinal Analysis. Wiley-Interscience.
Diggle, P., Heagerty, P, Liang, K-Y, & Zeger, S. (2002).
Analysis of Longitudinal Data. Oxford University Press.
Gelman, A. & Hill, J. (2006). Data Analysis Using Regression
and Multilevel/Hierarchical Models. Cambridge University
Press.
Help with R and {lme4}.
General R help. www.r-project.org
Nice intro to R. http://cran.r-project.org/doc/
contrib/Verzani-SimpleR.pdf
{lme4} help. Pinheiro, J. C. & Bates, D. (2002). Mixed
Effects Models in S and S-Plus. Springer Press. CAN
DOWNLOAD FROM LIBRARY!

More Related Content

Similar to longitudinal.pdf

2012-Nathans-PARE-RegressionGuidebook.pdf
2012-Nathans-PARE-RegressionGuidebook.pdf2012-Nathans-PARE-RegressionGuidebook.pdf
2012-Nathans-PARE-RegressionGuidebook.pdfs_p2000
 
Real Estate Data Set
Real Estate Data SetReal Estate Data Set
Real Estate Data SetSarah Jimenez
 
what is Correlations
what is Correlationswhat is Correlations
what is Correlationsderiliumboy
 
Dependence Techniques
Dependence Techniques Dependence Techniques
Dependence Techniques Hasnain Khan
 
HRUG - Linear regression with R
HRUG - Linear regression with RHRUG - Linear regression with R
HRUG - Linear regression with Regoodwintx
 
Selection of appropriate data analysis technique
Selection of appropriate data analysis techniqueSelection of appropriate data analysis technique
Selection of appropriate data analysis techniqueRajaKrishnan M
 
this activity is designed for you to explore the continuum of an a.docx
this activity is designed for you to explore the continuum of an a.docxthis activity is designed for you to explore the continuum of an a.docx
this activity is designed for you to explore the continuum of an a.docxhowardh5
 
Zhe_2014JointSummits_v6
Zhe_2014JointSummits_v6Zhe_2014JointSummits_v6
Zhe_2014JointSummits_v6Zhe (Henry) He
 
Multiple regression_statistics lesson.pptx
Multiple regression_statistics lesson.pptxMultiple regression_statistics lesson.pptx
Multiple regression_statistics lesson.pptxlinmaetonares2
 
STRUCTURAL EQUATION MODEL (SEM)
STRUCTURAL EQUATION MODEL (SEM)STRUCTURAL EQUATION MODEL (SEM)
STRUCTURAL EQUATION MODEL (SEM)AJHSSR Journal
 
BASIC STATISTICAL TREATMENT IN RESEARCH.pptx
BASIC STATISTICAL TREATMENT IN RESEARCH.pptxBASIC STATISTICAL TREATMENT IN RESEARCH.pptx
BASIC STATISTICAL TREATMENT IN RESEARCH.pptxardrianmalangen2
 
Research methodology Chapter 6
Research methodology Chapter 6Research methodology Chapter 6
Research methodology Chapter 6Pulchowk Campus
 
ML4 Regression.pptx
ML4 Regression.pptxML4 Regression.pptx
ML4 Regression.pptxDayal Sati
 
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 SeriesInternational advisers
 

Similar to longitudinal.pdf (20)

2012-Nathans-PARE-RegressionGuidebook.pdf
2012-Nathans-PARE-RegressionGuidebook.pdf2012-Nathans-PARE-RegressionGuidebook.pdf
2012-Nathans-PARE-RegressionGuidebook.pdf
 
Real Estate Data Set
Real Estate Data SetReal Estate Data Set
Real Estate Data Set
 
what is Correlations
what is Correlationswhat is Correlations
what is Correlations
 
Advanced statistics
Advanced statisticsAdvanced statistics
Advanced statistics
 
CH3.pdf
CH3.pdfCH3.pdf
CH3.pdf
 
Dependence Techniques
Dependence Techniques Dependence Techniques
Dependence Techniques
 
HRUG - Linear regression with R
HRUG - Linear regression with RHRUG - Linear regression with R
HRUG - Linear regression with R
 
Evaluacion cuatro
Evaluacion cuatroEvaluacion cuatro
Evaluacion cuatro
 
Selection of appropriate data analysis technique
Selection of appropriate data analysis techniqueSelection of appropriate data analysis technique
Selection of appropriate data analysis technique
 
this activity is designed for you to explore the continuum of an a.docx
this activity is designed for you to explore the continuum of an a.docxthis activity is designed for you to explore the continuum of an a.docx
this activity is designed for you to explore the continuum of an a.docx
 
Zhe_2014JointSummits_v6
Zhe_2014JointSummits_v6Zhe_2014JointSummits_v6
Zhe_2014JointSummits_v6
 
Multiple regression_statistics lesson.pptx
Multiple regression_statistics lesson.pptxMultiple regression_statistics lesson.pptx
Multiple regression_statistics lesson.pptx
 
Berd 5-6
Berd 5-6Berd 5-6
Berd 5-6
 
Path analysis with manifest variables
Path analysis with manifest variablesPath analysis with manifest variables
Path analysis with manifest variables
 
STRUCTURAL EQUATION MODEL (SEM)
STRUCTURAL EQUATION MODEL (SEM)STRUCTURAL EQUATION MODEL (SEM)
STRUCTURAL EQUATION MODEL (SEM)
 
Econometrics ch2
Econometrics ch2Econometrics ch2
Econometrics ch2
 
BASIC STATISTICAL TREATMENT IN RESEARCH.pptx
BASIC STATISTICAL TREATMENT IN RESEARCH.pptxBASIC STATISTICAL TREATMENT IN RESEARCH.pptx
BASIC STATISTICAL TREATMENT IN RESEARCH.pptx
 
Research methodology Chapter 6
Research methodology Chapter 6Research methodology Chapter 6
Research methodology Chapter 6
 
ML4 Regression.pptx
ML4 Regression.pptxML4 Regression.pptx
ML4 Regression.pptx
 
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
 

Recently uploaded

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 

Recently uploaded (20)

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 

longitudinal.pdf

  • 1. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Introduction to Longitudinal Data Analysis Christopher David Desjardins Chu-Ting Chung Jeffrey D. Long 11 January 2010
  • 2. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Outline 1 Introduction 2 Benefits 3 Synonyms 4 Formula and Assumptions 5 LMMs in R 6 Getting Help
  • 3. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help What is Longitudinal Data? The defining characteristic of longitudinal studies is that individuals are measured repeatedly through time. In contrast, cross-sectional studies involve collecting measurements on an individual only once. Concerned with mean change over time. Longitudinal studies allow examination of age and cohort effects. Longitudinal studies can distinguish changes over time within individuals (aging effects) from differences among people in their baseline levels (cohort effects).
  • 4. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help What is Longitudinal Data? The defining characteristic of longitudinal studies is that individuals are measured repeatedly through time. In contrast, cross-sectional studies involve collecting measurements on an individual only once. Concerned with mean change over time. Longitudinal studies allow examination of age and cohort effects. Longitudinal studies can distinguish changes over time within individuals (aging effects) from differences among people in their baseline levels (cohort effects).
  • 5. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help What is Longitudinal Data? The defining characteristic of longitudinal studies is that individuals are measured repeatedly through time. In contrast, cross-sectional studies involve collecting measurements on an individual only once. Concerned with mean change over time. Longitudinal studies allow examination of age and cohort effects. Longitudinal studies can distinguish changes over time within individuals (aging effects) from differences among people in their baseline levels (cohort effects).
  • 6. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help What is Longitudinal Data? The defining characteristic of longitudinal studies is that individuals are measured repeatedly through time. In contrast, cross-sectional studies involve collecting measurements on an individual only once. Concerned with mean change over time. Longitudinal studies allow examination of age and cohort effects. Longitudinal studies can distinguish changes over time within individuals (aging effects) from differences among people in their baseline levels (cohort effects).
  • 7. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help What is Longitudinal Data? The defining characteristic of longitudinal studies is that individuals are measured repeatedly through time. In contrast, cross-sectional studies involve collecting measurements on an individual only once. Concerned with mean change over time. Longitudinal studies allow examination of age and cohort effects. Longitudinal studies can distinguish changes over time within individuals (aging effects) from differences among people in their baseline levels (cohort effects).
  • 8. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Age or cohort effects? Age Reading 95 100 105 110 115 120 125 ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● 8 10 12 14 16 18
  • 9. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Age or cohort effects? Age Reading 95 100 105 110 115 120 125 ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● 8 10 12 14 16 18
  • 10. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Age or cohort effects? Age Reading 95 100 105 110 115 120 125 8 10 12 14 16 18
  • 11. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Benefits of Linear Mixed Models Fit intercepts and slopes for individuals Accounts for correlations between time points Accommodates missing data Accommodates measurements at unequal intervals Relatively few parameters required to account for dependency due to repeated measures Can handle both continuous and categorical covariates
  • 12. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Benefits of Linear Mixed Models Fit intercepts and slopes for individuals Accounts for correlations between time points Accommodates missing data Accommodates measurements at unequal intervals Relatively few parameters required to account for dependency due to repeated measures Can handle both continuous and categorical covariates
  • 13. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Benefits of Linear Mixed Models Fit intercepts and slopes for individuals Accounts for correlations between time points Accommodates missing data Accommodates measurements at unequal intervals Relatively few parameters required to account for dependency due to repeated measures Can handle both continuous and categorical covariates
  • 14. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Benefits of Linear Mixed Models Fit intercepts and slopes for individuals Accounts for correlations between time points Accommodates missing data Accommodates measurements at unequal intervals Relatively few parameters required to account for dependency due to repeated measures Can handle both continuous and categorical covariates
  • 15. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Benefits of Linear Mixed Models Fit intercepts and slopes for individuals Accounts for correlations between time points Accommodates missing data Accommodates measurements at unequal intervals Relatively few parameters required to account for dependency due to repeated measures Can handle both continuous and categorical covariates
  • 16. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Benefits of Linear Mixed Models Fit intercepts and slopes for individuals Accounts for correlations between time points Accommodates missing data Accommodates measurements at unequal intervals Relatively few parameters required to account for dependency due to repeated measures Can handle both continuous and categorical covariates
  • 17. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Correlations between time points Traditional regression does not account for this correlation This results in bogus standard error estimates and p-values. This is done in the covariance-variance matrix among the repeated measures known as Σi Recall a correlation matrix is a standardized covariance-variance matrix. This matrix is involved directly in estimating the parameters unlike in traditional regression. This matrix is broken down further and includes the random effects matrix.
  • 18. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Correlations between time points Traditional regression does not account for this correlation This results in bogus standard error estimates and p-values. This is done in the covariance-variance matrix among the repeated measures known as Σi Recall a correlation matrix is a standardized covariance-variance matrix. This matrix is involved directly in estimating the parameters unlike in traditional regression. This matrix is broken down further and includes the random effects matrix.
  • 19. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Correlations between time points Traditional regression does not account for this correlation This results in bogus standard error estimates and p-values. This is done in the covariance-variance matrix among the repeated measures known as Σi Recall a correlation matrix is a standardized covariance-variance matrix. This matrix is involved directly in estimating the parameters unlike in traditional regression. This matrix is broken down further and includes the random effects matrix.
  • 20. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Correlations between time points Traditional regression does not account for this correlation This results in bogus standard error estimates and p-values. This is done in the covariance-variance matrix among the repeated measures known as Σi Recall a correlation matrix is a standardized covariance-variance matrix. This matrix is involved directly in estimating the parameters unlike in traditional regression. This matrix is broken down further and includes the random effects matrix.
  • 21. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Correlations between time points Traditional regression does not account for this correlation This results in bogus standard error estimates and p-values. This is done in the covariance-variance matrix among the repeated measures known as Σi Recall a correlation matrix is a standardized covariance-variance matrix. This matrix is involved directly in estimating the parameters unlike in traditional regression. This matrix is broken down further and includes the random effects matrix.
  • 22. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Correlations between time points Traditional regression does not account for this correlation This results in bogus standard error estimates and p-values. This is done in the covariance-variance matrix among the repeated measures known as Σi Recall a correlation matrix is a standardized covariance-variance matrix. This matrix is involved directly in estimating the parameters unlike in traditional regression. This matrix is broken down further and includes the random effects matrix.
  • 23. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Accomodates missing data Missing data handled through robust maximum likelihood estimation No need for multiple imputation when using continuous variables Two types of Maximum Likelihood Estimates Full Maximum Likelihood Restricted Maximum Likeihood - provides unbaised variance estimates
  • 24. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Accomodates missing data Missing data handled through robust maximum likelihood estimation No need for multiple imputation when using continuous variables Two types of Maximum Likelihood Estimates Full Maximum Likelihood Restricted Maximum Likeihood - provides unbaised variance estimates
  • 25. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Accomodates missing data Missing data handled through robust maximum likelihood estimation No need for multiple imputation when using continuous variables Two types of Maximum Likelihood Estimates Full Maximum Likelihood Restricted Maximum Likeihood - provides unbaised variance estimates
  • 26. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Accomodates missing data Missing data handled through robust maximum likelihood estimation No need for multiple imputation when using continuous variables Two types of Maximum Likelihood Estimates Full Maximum Likelihood Restricted Maximum Likeihood - provides unbaised variance estimates
  • 27. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Accomodates missing data Missing data handled through robust maximum likelihood estimation No need for multiple imputation when using continuous variables Two types of Maximum Likelihood Estimates Full Maximum Likelihood Restricted Maximum Likeihood - provides unbaised variance estimates
  • 28. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Other benefits Individuals can be measured at different times and do not need to measured at all times. Therefore, we do not need to throw out data or impute data on individuals. We throw out cases not individuals. Fewer parameters used in these models than ANOVA and MANOVA models. This leads to higher statistical power. Can handle continuous and categorical covariates simulatenously. No need for a seperate model. Categorical covariates are dummy coded.
  • 29. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Other benefits Individuals can be measured at different times and do not need to measured at all times. Therefore, we do not need to throw out data or impute data on individuals. We throw out cases not individuals. Fewer parameters used in these models than ANOVA and MANOVA models. This leads to higher statistical power. Can handle continuous and categorical covariates simulatenously. No need for a seperate model. Categorical covariates are dummy coded.
  • 30. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Other benefits Individuals can be measured at different times and do not need to measured at all times. Therefore, we do not need to throw out data or impute data on individuals. We throw out cases not individuals. Fewer parameters used in these models than ANOVA and MANOVA models. This leads to higher statistical power. Can handle continuous and categorical covariates simulatenously. No need for a seperate model. Categorical covariates are dummy coded.
  • 31. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Other benefits Individuals can be measured at different times and do not need to measured at all times. Therefore, we do not need to throw out data or impute data on individuals. We throw out cases not individuals. Fewer parameters used in these models than ANOVA and MANOVA models. This leads to higher statistical power. Can handle continuous and categorical covariates simulatenously. No need for a seperate model. Categorical covariates are dummy coded.
  • 32. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Other benefits Individuals can be measured at different times and do not need to measured at all times. Therefore, we do not need to throw out data or impute data on individuals. We throw out cases not individuals. Fewer parameters used in these models than ANOVA and MANOVA models. This leads to higher statistical power. Can handle continuous and categorical covariates simulatenously. No need for a seperate model. Categorical covariates are dummy coded.
  • 33. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Other benefits Individuals can be measured at different times and do not need to measured at all times. Therefore, we do not need to throw out data or impute data on individuals. We throw out cases not individuals. Fewer parameters used in these models than ANOVA and MANOVA models. This leads to higher statistical power. Can handle continuous and categorical covariates simulatenously. No need for a seperate model. Categorical covariates are dummy coded.
  • 34. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Other names for these models Hierarchical linear models (HLM) HLM are generally cross-sectional and involve multiple levels, such as school effects In longitudinal models, measurements over time are nested within individuals rather than a school Linear Mixed Models Multilevel Models Mixed Effects Models
  • 35. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Other names for these models Hierarchical linear models (HLM) HLM are generally cross-sectional and involve multiple levels, such as school effects In longitudinal models, measurements over time are nested within individuals rather than a school Linear Mixed Models Multilevel Models Mixed Effects Models
  • 36. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Other names for these models Hierarchical linear models (HLM) HLM are generally cross-sectional and involve multiple levels, such as school effects In longitudinal models, measurements over time are nested within individuals rather than a school Linear Mixed Models Multilevel Models Mixed Effects Models
  • 37. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Other names for these models Hierarchical linear models (HLM) HLM are generally cross-sectional and involve multiple levels, such as school effects In longitudinal models, measurements over time are nested within individuals rather than a school Linear Mixed Models Multilevel Models Mixed Effects Models
  • 38. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Other names for these models Hierarchical linear models (HLM) HLM are generally cross-sectional and involve multiple levels, such as school effects In longitudinal models, measurements over time are nested within individuals rather than a school Linear Mixed Models Multilevel Models Mixed Effects Models
  • 39. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Other names for these models Hierarchical linear models (HLM) HLM are generally cross-sectional and involve multiple levels, such as school effects In longitudinal models, measurements over time are nested within individuals rather than a school Linear Mixed Models Multilevel Models Mixed Effects Models
  • 40. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help LMM formula Recall a simple multiple regression model is: Yi = β0 + β1X1i + β2X2i + ... + βpXpi + ei In a LMM, a regression model measured j times might become: Yij = β0 + b0i + β1X1i + (β2 + b2i )tij + eij
  • 41. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help LMM formula explained Nomenclature Definition Yij refers to the outcome variable, e.g. infant’s weight, for individual i at time j β0 refers to the intercept b0i refers to the random intercept for individual i. This allows individuals to vary in their initial values. β1X1i the parameter estimate associated with a covariate, such as primary feeding type. β2 the fixed effect estimate associated with time b2i refers to the random slope for individual i.This allows individuals to vary in their slopes. tij time variable, months since birth. eij is the residual error term.
  • 42. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Assumptions of LMMs Obseravations of individuals are independent Random effects are normally distributed Random residuals are normally distributed
  • 43. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Assumptions of LMMs Obseravations of individuals are independent Random effects are normally distributed Random residuals are normally distributed
  • 44. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Assumptions of LMMs Obseravations of individuals are independent Random effects are normally distributed Random residuals are normally distributed
  • 45. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Running LMMs Yij = β0 + b0i + (β1 + b1i )tij + eij Use the {lme4} package in R and the lmer function. If you can write your model as a LMM then you can program it in R. Basic R Formula: m1 < −lmer(Outcome ∼ 1 + Time + (1 + month|ID), data = data))
  • 46. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Running LMMs Yij = β0 + b0i + (β1 + b1i )tij + eij Use the {lme4} package in R and the lmer function. If you can write your model as a LMM then you can program it in R. Basic R Formula: m1 < −lmer(Outcome ∼ 1 + Time + (1 + month|ID), data = data))
  • 47. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Running LMMs Yij = β0 + b0i + (β1 + b1i )tij + eij Use the {lme4} package in R and the lmer function. If you can write your model as a LMM then you can program it in R. Basic R Formula: m1 < −lmer(Outcome ∼ 1 + Time + (1 + month|ID), data = data))
  • 48. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Running LMMs > library(lme4) > data(sleepstudy) > m1 <- lmer(Reaction ~ 1 + Days + (1 + Days|Subject), sleepstudy) > summary(m1) Linear mixed model fit by REML Formula: Reaction ~ 1 + Days + (1 + Days | Subject) Data: sleepstudy AIC BIC logLik deviance REMLdev 1756 1775 -871.8 1752 1744 Random effects: Groups Name Variance Std.Dev. Corr Subject (Intercept) 612.090 24.7405 Days 35.072 5.9221 0.066 Residual 654.941 25.5918 Number of obs: 180, groups: Subject, 18 Fixed effects: Estimate Std. Error t value (Intercept) 251.405 6.825 36.84 Days 10.467 1.546 6.77 Correlation of Fixed Effects: (Intr) Days -0.138
  • 49. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Getting Help with LMMs and R Help with LMMs Fitzmaurice, G. M., Laird, N.M., & Ware, J.H. (2004). Applied Longitudinal Analysis. Wiley-Interscience. Diggle, P., Heagerty, P, Liang, K-Y, & Zeger, S. (2002). Analysis of Longitudinal Data. Oxford University Press. Gelman, A. & Hill, J. (2006). Data Analysis Using Regression and Multilevel/Hierarchical Models. Cambridge University Press. Help with R and {lme4}. General R help. www.r-project.org Nice intro to R. http://cran.r-project.org/doc/ contrib/Verzani-SimpleR.pdf {lme4} help. Pinheiro, J. C. & Bates, D. (2002). Mixed Effects Models in S and S-Plus. Springer Press. CAN DOWNLOAD FROM LIBRARY!
  • 50. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Getting Help with LMMs and R Help with LMMs Fitzmaurice, G. M., Laird, N.M., & Ware, J.H. (2004). Applied Longitudinal Analysis. Wiley-Interscience. Diggle, P., Heagerty, P, Liang, K-Y, & Zeger, S. (2002). Analysis of Longitudinal Data. Oxford University Press. Gelman, A. & Hill, J. (2006). Data Analysis Using Regression and Multilevel/Hierarchical Models. Cambridge University Press. Help with R and {lme4}. General R help. www.r-project.org Nice intro to R. http://cran.r-project.org/doc/ contrib/Verzani-SimpleR.pdf {lme4} help. Pinheiro, J. C. & Bates, D. (2002). Mixed Effects Models in S and S-Plus. Springer Press. CAN DOWNLOAD FROM LIBRARY!
  • 51. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Getting Help with LMMs and R Help with LMMs Fitzmaurice, G. M., Laird, N.M., & Ware, J.H. (2004). Applied Longitudinal Analysis. Wiley-Interscience. Diggle, P., Heagerty, P, Liang, K-Y, & Zeger, S. (2002). Analysis of Longitudinal Data. Oxford University Press. Gelman, A. & Hill, J. (2006). Data Analysis Using Regression and Multilevel/Hierarchical Models. Cambridge University Press. Help with R and {lme4}. General R help. www.r-project.org Nice intro to R. http://cran.r-project.org/doc/ contrib/Verzani-SimpleR.pdf {lme4} help. Pinheiro, J. C. & Bates, D. (2002). Mixed Effects Models in S and S-Plus. Springer Press. CAN DOWNLOAD FROM LIBRARY!
  • 52. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Getting Help with LMMs and R Help with LMMs Fitzmaurice, G. M., Laird, N.M., & Ware, J.H. (2004). Applied Longitudinal Analysis. Wiley-Interscience. Diggle, P., Heagerty, P, Liang, K-Y, & Zeger, S. (2002). Analysis of Longitudinal Data. Oxford University Press. Gelman, A. & Hill, J. (2006). Data Analysis Using Regression and Multilevel/Hierarchical Models. Cambridge University Press. Help with R and {lme4}. General R help. www.r-project.org Nice intro to R. http://cran.r-project.org/doc/ contrib/Verzani-SimpleR.pdf {lme4} help. Pinheiro, J. C. & Bates, D. (2002). Mixed Effects Models in S and S-Plus. Springer Press. CAN DOWNLOAD FROM LIBRARY!
  • 53. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Getting Help with LMMs and R Help with LMMs Fitzmaurice, G. M., Laird, N.M., & Ware, J.H. (2004). Applied Longitudinal Analysis. Wiley-Interscience. Diggle, P., Heagerty, P, Liang, K-Y, & Zeger, S. (2002). Analysis of Longitudinal Data. Oxford University Press. Gelman, A. & Hill, J. (2006). Data Analysis Using Regression and Multilevel/Hierarchical Models. Cambridge University Press. Help with R and {lme4}. General R help. www.r-project.org Nice intro to R. http://cran.r-project.org/doc/ contrib/Verzani-SimpleR.pdf {lme4} help. Pinheiro, J. C. & Bates, D. (2002). Mixed Effects Models in S and S-Plus. Springer Press. CAN DOWNLOAD FROM LIBRARY!
  • 54. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Getting Help with LMMs and R Help with LMMs Fitzmaurice, G. M., Laird, N.M., & Ware, J.H. (2004). Applied Longitudinal Analysis. Wiley-Interscience. Diggle, P., Heagerty, P, Liang, K-Y, & Zeger, S. (2002). Analysis of Longitudinal Data. Oxford University Press. Gelman, A. & Hill, J. (2006). Data Analysis Using Regression and Multilevel/Hierarchical Models. Cambridge University Press. Help with R and {lme4}. General R help. www.r-project.org Nice intro to R. http://cran.r-project.org/doc/ contrib/Verzani-SimpleR.pdf {lme4} help. Pinheiro, J. C. & Bates, D. (2002). Mixed Effects Models in S and S-Plus. Springer Press. CAN DOWNLOAD FROM LIBRARY!
  • 55. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Getting Help with LMMs and R Help with LMMs Fitzmaurice, G. M., Laird, N.M., & Ware, J.H. (2004). Applied Longitudinal Analysis. Wiley-Interscience. Diggle, P., Heagerty, P, Liang, K-Y, & Zeger, S. (2002). Analysis of Longitudinal Data. Oxford University Press. Gelman, A. & Hill, J. (2006). Data Analysis Using Regression and Multilevel/Hierarchical Models. Cambridge University Press. Help with R and {lme4}. General R help. www.r-project.org Nice intro to R. http://cran.r-project.org/doc/ contrib/Verzani-SimpleR.pdf {lme4} help. Pinheiro, J. C. & Bates, D. (2002). Mixed Effects Models in S and S-Plus. Springer Press. CAN DOWNLOAD FROM LIBRARY!
  • 56. Introduction Benefits Synonyms Formula and Assumptions LMMs in R Getting Help Getting Help with LMMs and R Help with LMMs Fitzmaurice, G. M., Laird, N.M., & Ware, J.H. (2004). Applied Longitudinal Analysis. Wiley-Interscience. Diggle, P., Heagerty, P, Liang, K-Y, & Zeger, S. (2002). Analysis of Longitudinal Data. Oxford University Press. Gelman, A. & Hill, J. (2006). Data Analysis Using Regression and Multilevel/Hierarchical Models. Cambridge University Press. Help with R and {lme4}. General R help. www.r-project.org Nice intro to R. http://cran.r-project.org/doc/ contrib/Verzani-SimpleR.pdf {lme4} help. Pinheiro, J. C. & Bates, D. (2002). Mixed Effects Models in S and S-Plus. Springer Press. CAN DOWNLOAD FROM LIBRARY!