Multilevel modeling and ego network dynamics
Brea L. Perry
Indiana University
+
MLM for social networks
+
MLM for social networks
Like students in schools or obs over time in people
+
MLM for social networks
When to use MLM for ego SNA: Formal requirements
+
MLM research questions
+
What is MLM?
Same as other terms you have heard:
+
Two major parts of any model
Part I: Model for the means
+
Two major parts of any model
Part II: Model for the variances
+
Dependency
Model dependency or autocorrelation across observations
+
Why use MLM?: Dependency
Where does dependency come from? Two sources:
+
Why use MLM?: Dependency
+
Review of General Linear Model (GLM)
+
What we’re doing with a GLM
Each red arrow represents error - the line of fitted values does not go through every data point, so there is error in the estimate
We want to draw a regression line that minimizes error…this is what OLS does
ei
ei = Observed value – Fitted value
+
Review of GLM
+
Random-intercept model
zeta
epsilon
+
Random-intercept model
Think about this as simply splitting up a pile of variance (i.e., differences from the mean) into two types:
+
Random intercept model
We are just making piles of variance, not reducing overall variance
OLS
Random-intercept MLM
+
Random-intercept model
psi
theta
+
Intraclass correlation
rho
+
Intraclass correlation
+
Intraclass correlation
ICC is a standardized way of expressing how much we need to worry about dependency due to cluster mean differences
+
Sexual contact example
Suppose I want to predict how often couples have sex…
+
Sexual contact example
Two egos Jane and Joe and five sex partners (dyads)
Variation within
Variation within
Variation between
+
Sexual contact example
Jane’s regression line
Joe’s regression line
y = # sexual contacts
x = number of instruments
3
2
1
0
+
Sexual contact example
Egos get their own random intercept based on their alter/tie observations
Every ego gets their own regression line
y = # sexual contacts
x = number of instruments
3
2
1
0
+
Sexual contact example
What if the effects of x on y within egos are different?
Jane’s regression line
Joe’s regression line
y = # sexual contacts
x = number of instruments alter plays
3
2
1
0
+
Random-coefficient model
The random-coefficient linear regression model:
+
Sexual contact example
Jane’s regression line
Joe’s regression line
y = # sexual contacts
x = number of instruments alter plays
2
1
0
+
Sexual contact example
Egos get their own random intercept and slope based on their alters
Every ego gets their own regression line
y = # sexual contacts
x = number of instruments alter plays
3
2
1
0
+
Random coefficient model
We are still just making piles of variance, not reducing overall variance
OLS
Random-intercept MLM
Random-coefficient MLM
+
Random effects, between effects, and fixed effects
+
Cluster confounding: A threat to RE models
+
Cluster confounding example
+
Sexual contact example
Number of instruments
Three egos:
Jane
Joe
Jalissa
OLS regression line (completely pooled)
+
Sexual contact example
Number of instruments
BE regression line (aggregate model using ego means)
Three egos:
Jane
Joe
Jalissa
+
Sexual contact example
Number of instruments
FE regression line (no pooling)
Three egos:
Jane
Joe
Jalissa
+
Sexual contact example
Number of instruments
OLS regression line (completely pooled)
FE regression line (no pooling)
BE regression line (aggregate model using ego means)
Three egos:
Jane
Joe
Jalissa
+
Sexual contact example
Number of instruments
RE regression line (partially pooled)
FE regression line (no pooling)
BE regression line (aggregate model using ego means)
Three egos:
Jane
Joe
Jalissa
+
Cluster confounding example
+
There are solutions…
+
Contextual effects
Add a contextual effect of alter/tie-level variables by including the aggregated (usually mean) version of the variable
+
Contextual effects
In sexual contact example, you would add mean number of instruments across all alters within a network when modeling the effect of number of instruments each alter plays
+
Decomposing variance
+
Decomposing variance
In sexual contact example…
+
Random vs. fixed effects models
No Pooling Partial Pooling Complete Pooling
OLS 🡪 Ignore clusters and assume they don’t matter
Random effects 🡪 Borrow information from the grand mean
Fixed effects 🡪 Within-cluster mean and variation are all that matter
+
MLM in Stata
What does the output/interpretation look like?
YOU CAN DO THIS!!!
+
MLM in Stata
+
MLM in Stata
Suppose we want to look at the effects of ego and alter gender on the number of support functions provided by an alter to an ego
+
Empty RI model
Step 1: Run an “empty” model (without covariates) to assess the random parts of the model
+
Empty RI model
If significant, you need MLM
+
Empty RI model
+
RI model with predictors
Model for the means is just business as usual
Most people ignore the model for the variances
Step 2: Add covariates and interpret as usual
+
Add a contextual effect
. *Random intercept model with contextual effect
. xtmixed support egofem altfem netfem10 || EGOID: , mle variance
Performing EM optimization:
Performing gradient-based optimization:
Mixed-effects ML regression Number of obs = 19,409
Group variable: EGOID Number of groups = 1,050
Obs per group:
min = 2
avg = 18.5
max = 67
Wald chi2(3) = 40.11
Log likelihood = -24624.611 Prob > chi2 = 0.0000
------------------------------------------------------------------------------
support | Coef. Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
egofem | .0189512 .0216578 0.88 0.382 -.0234973 .0613998
altfem | .0761756 .0126522 6.02 0.000 .0513778 .1009735
netfem10 | -.0217038 .0073214 -2.96 0.003 -.0360534 -.0073541
_cons | .8996575 .0332023 27.10 0.000 .8345822 .9647329
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Random-effects Parameters | Estimate Std. Err. [95% Conf. Interval]
-----------------------------+------------------------------------------------
EGOID: Identity |
var(_cons) | .0431032 .0037524 .0363419 .0511224
-----------------------------+------------------------------------------------
var(Residual) | .7121663 .0074291 .6977535 .7268769
------------------------------------------------------------------------------
LR test vs. linear model: chibar2(01) = 377.53 Prob >= chibar2 = 0.0000
Step 3: Add a contextual effect and interpret
*Could also decompose variance but not if your predictor is binary (interpretation doesn’t make sense)
+
Ego network dynamics
+
Social network dynamics
+
What we know about social network dynamics
+
What we know about social network dynamics
(Cornwell et al. 2021)
+
What we know about social network dynamics
At least three mechanisms of membership turnover:
+
What we know about social network dynamics
Personal network dynamics operate similarly to biological evolution, which is to say that they undergo gradual, random ebbs and flows in membership punctuated by intense rapid shifts that correspond to significant events (Wellman)
+
What we know about social network dynamics
Networks are comprised of two basic components:
+
What we know about social network dynamics
Periphery is a problem for cross-sectional network studies
+
How to measure network change
Problem 1: Real change or methodological artifact?
+
How to measure network change
Problem 2: Determining what alter-level changes underlie network-level change
Suppose the mean freq of contact with network members decreases from W1 to W2. This can be due to…
+
How to measure network change
Solution: Real change or methodological artifact?
In each follow-up wave of a study…
+
How to measure network change
+
Measures of network change
Network-level measures that capture network turnover (pooled across two or more waves)
+
Measures of network change
N dropped or added
N unique alters pooled
Network turnover
(Perry & Pescosolido 2012)
+
How to analyze network change
If goal is to describe network-level change:
+
How to analyze network change
Source: Cornwell et al. 2014
Comparing mean characteristics of networks across waves…
+
How to analyze network change
If goal is to describe alter-level change:
+
How to analyze network change
Source: Cornwell et al. 2014
Comparing characteristics of stable, lost, and new alters…
+
How to analyze network change
If goal is to predict network-level change
+
How to analyze network change
If goal is to predict alter-level change
+
Questions?
+
Three important considerations when choosing FE or RE
1. Amount of variation within clusters compared to variation across clusters
+
Three important considerations when choosing FE or RE
2. Amount of data (obs per cluster and number of clusters) if you have a sluggish DV
+
Cross-level interactions
Change in effect of alter gender when ego gender=1
Effect of alter gender when ego gender= 0
. xtmixed support altfem##egofem c.netfem10##egofem || EGOID: altfem , mle covariance(unstructured) variance
Mixed-effects ML regression Number of obs = 19,409
Group variable: EGOID Number of groups = 1,050
Wald chi2(5) = 103.07
Log likelihood = -24593.322 Prob > chi2 = 0.0000
-----------------------------------------------------------------------------------
support | Coef. Std. Err. z P>|z| [95% Conf. Interval]
------------------+----------------------------------------------------------------
1.altfem | -.0234568 .018998 -1.23 0.217 -.0606921 .0137786
1.egofem | -.0578108 .0740929 -0.78 0.435 -.2030302 .0874086
altfem#egofem |
1 1 | .191793 .0255892 7.50 0.000 .1416391 .2419468
netfem10 | -.020383 .0112081 -1.82 0.069 -.0423506 .0015845
egofem#c.netfem10 |
1 | -.0033288 .0147954 -0.22 0.822 -.0323272 .0256697
_cons | .9356164 .0481098 19.45 0.000 .841323 1.02991
-----------------------------------------------------------------------------------
------------------------------------------------------------------------------
Random-effects Parameters | Estimate Std. Err. [95% Conf. Interval]
-----------------------------+------------------------------------------------
EGOID: Unstructured |
var(altfem) | .0022581 .0066916 6.78e-06 .7518713
var(_cons) | .0358574 .0049609 .0273411 .0470265
cov(altfem,_cons) | .0067692 .0045788 -.002205 .0157434
-----------------------------+------------------------------------------------
var(Residual) | .7093482 .007568 .6946691 .7243374
------------------------------------------------------------------------------
LR test vs. linear model: chi2(3) = 385.69 Prob > chi2 = 0.0000
Change in effect of network gender comp. when ego gender=1
Effect of network gender comp. when ego gender= 0
+
Cross-level interactions
+