1/8/2017 1
TWO-DAY DYADIC DATA ANALYSIS WORKSHOP
Randi L. Garcia Smith College UCSF January 9th and 10th
@RandiLGarcia
RandiLGarcia
Smith professor of:
- Psychology
- Statistical and Data
Sciences
TWO-DAY DYADIC DATA ANALYSIS WORKSHOP Randi L. Garcia Smith - - PDF document
1/8/2017 TWO-DAY DYADIC DATA ANALYSIS WORKSHOP Randi L. Garcia Smith College UCSF January 9 th and 10 th RandiLGarcia @RandiLGarcia A little about me Smith professor of: Psychology Statistical and Data Sciences What about you?
1/8/2017 1
Randi L. Garcia Smith College UCSF January 9th and 10th
@RandiLGarcia
RandiLGarcia
Smith professor of:
Sciences
1/8/2017 2
>Find the workshop schedule and data examples here: https://randilgarcia.github.io/website/workshop/schedule.html >Download ALL materials, including R-code, here: https://github.com/RandiLGarcia/2day-dyad-workshop
1/8/2017 3
factor?
cannot, then can we say that the dyad members are distinguishable?
6
1/8/2017 4
1.
It should be theoretically important to make such a distinction between members.
2.
Also it should be shown that empirically there are differences.
members: Spouse vs. patient; husband vs. wife.
8
1/8/2017 5
score
B A B A A A A B A B
1/8/2017 6
the dyad average from dyad to dyad.
members can be distinguished on that variable. But that doesn’t mean it would be theoretically meaningful to do so.
B B B B B A A A A A
1/8/2017 7
across dyads in the average score.
Can you think of a variable that can be between-dyads, within-dyads, or mixed across different samples?
14
1/8/2017 8
15
16
1/8/2017 9
17
18
1/8/2017 10
19
20
1/8/2017 11
1/8/2017 12
1/8/2017 13
1/8/2017 14
Then break! Then more demo…
1/8/2017 15
dyad (or group).
1/8/2017 16
Examples
household may be negatively correlated.
self-objectification is negatively correlated in dyadic interactions.
1/8/2017 17
1.
Direction of Nonindependence
2.
Is the predictor a between or within dyads variable? (or somewhere in between: mixed)
Too liberal Too conservative
Too conservative Too liberal
1/8/2017 18
husbands and a separate one for wives)
1.
Multilevel Modeling
2.
Structural Equation Modeling
1/8/2017 19
𝑧𝑗𝑘 = 𝑐0𝑘 + 𝑐1𝑘𝑌1𝑗𝑘 + 𝑓𝑗𝑘 𝑐0𝑘 = 00 + 01𝑎1𝑘 + 𝑣0𝑘 𝑐1𝑘 = 10
Micro level Macro level
𝑧1𝑘 = 𝑐0 + 𝑐1𝑘𝑌11𝑘 + 𝑓1𝑘 𝑧2𝑘 = 𝑐0 + 𝑐1𝑘𝑌12𝑘 + 𝑓2𝑘 𝑐1𝑘 = 10
Micro level Macro level
𝜍 called “rho”
1/8/2017 20
1/8/2017 21
effect) and the effect of same variable but from the partner (partner effect) on an
interested in the effects of depression on relationship quality
1/8/2017 22
variable
1/8/2017 23
patients to spouses
Researcher should be clear!
1/8/2017 24
to be equal.
nonindependence in the dyad.
1/8/2017 25
1/8/2017 26
1.
Intercepts (main effect of distinguishing variable)
2.
Actor effects
3.
Partner effects
4.
Error variances
1/8/2017 27
hypothesis that the dyad members are indistinguishable. If however, c2 is significant, then the data are inconsistent with the null hypothesis that the dyad members are indistinguishable (i.e., dyad members are distinguishable in some way).
1/8/2017 28
Generalized Linear Mixed Models
1/8/2017 29
identity, etc.).
function.
function—the response is multiplied by 1.
1
1.
1/8/2017 30
162 354 = .458
.458 1−.458 = .845
.438 1−.438 = .778
.465 1−.465 = .870
.870 .778 = 1.118
“Non-minorities are 1.118 times more likely to be committed than minorities.”
ln 𝑄
1
1 − 𝑄
1
= 𝑐0 + 𝑐1𝑌1 + 𝑐2𝑌2 + ⋯ + 𝑐𝑜𝑌𝑜
𝑄
1 is the predicted probability of being in group coded as 1
1− 𝑄1 is the odds of being in group 1
𝑄1 1− 𝑄
1 is the “logit” function
1/8/2017 31
ln 𝑄
1
1 − 𝑄
1
= 𝑐0 + 𝑐1𝑌1 + 𝑐2𝑌2 + ⋯ + 𝑐𝑜𝑌𝑜
1-unit increase in X.
ratio between X = a and X = a+1.
per day). ln 𝑍 = 𝑐0 + 𝑐1𝑌1 + 𝑐2𝑌2 + ⋯ + 𝑐𝑜𝑌𝑜
1/8/2017 32
include random effects in the model.
function.
nonindependence
1/8/2017 33