Professional Documents
Culture Documents
Block
4b
GCA:
Outline
1. Introduc@on
to
growth
curve
analysis
2. Basics
of
R
3. GCA
in
R
– Uncondi@onal
growth
models
– Condi@onal
growth
models
– Within-‐individual
effects
– Model
comparison
GCA:
Introduc@on
• Mul@level
polynomial
curve-‐fiNng
approach
for
longitudinal
data.
• Data
that
describes
how
individuals
in
a
sample
change
over
@me.
GCA
&
The
Visual
World
• Visual
world
paradigm:
track
listeners’
eye
movements
as
they
hear
language
related
to
a
visual
scene.
Assign
(save)
data Read
in
.csv
data
file Specify
the
file
to
object
“data.” (func@on
“read.csv”). name
&
loca@on.
Looking
at
your
data
> data
> data$Subject
> str(data)
Collapse
across
condi@ons,
groups,
etc.
Load
nlme
library
> library(nlme)
> summary(m1)
Fixed effects
Time
(variable)
squared.
Quadra@c
change
(Time )
2
Fixed effects
Time
(variable)
cubed.
Cubic
change
(Time )
3
Fixed effects
> m2a <- lme(Fixs.Glass ~ Wave + I(Wave^2) + Condition, data=data, random= ~ Wave |
Subject, method="ML")
Condi@on(v
ariable).
Effect
of
condi@on
on
the
intercept
Fixed effects
Time
(variable)
*
Condi@on(variable).
Effect
of
condi@on
on
Time
Fixed effects
And:
Condi@on
=
0
But:
Condi@on
=
1
Model
comparisons
Models
to
compare.
Model
comparisons
Compute
p-‐value
for
change Subtract
log
likelihoods
of df
=
difference
in
number
in
-‐2
log
likelihood. two
models
(use
“$logLik”). of
parameters
Summary