You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\caption{Friendship network of a UK university faculty. Source: \textbf{igraphdata} R package (Csardi, 2015). Figure drawn using the R package \textbf{netplot} (yours truly, https://github.com/usccana/netplot)}
41
42
\end{figure}
42
43
43
-
## What drives \sout{\color{USCCardinal}social} networks?
44
+
<!--## What drives \sout{\color{USCCardinal}social} networks?-->
44
45
45
-
If \color{gray}\textit{[blank]}\color{black}{} asks you to predict a network\pause
46
+
<!--If \color{gray}\textit{[blank]}\color{black}{} asks you to predict a network\pause-->
46
47
47
-
\Huge What kind of model?\pause
48
+
<!--\Huge What kind of model?\pause-->
48
49
49
-
\Huge What features would you include?\pause
50
+
<!--\Huge What features would you include?\pause-->
50
51
51
-
\normalsize
52
+
<!--\normalsize-->
52
53
53
-
## Exponential Family Random Graph Models (ERGMs)
54
+
## What drives \sout{\color{USCCardinal}social} networks?
54
55
55
-
Why are you and I are \color{gray}\textit{[blank]} \color{black}? (friends, collaborators, etc.)
56
+
Why are you and I are \color{gray}\textit{[blank]} \color{black}? (friends, collaborators, etc.)\pause
56
57
57
58
```{r ergm-terms, echo=FALSE}
58
59
knitr::include_graphics("fig/friendly-terms.pdf")
59
60
```
60
61
61
62
\pause Let's build a model for this!
62
63
63
-
## ERGMs from scratch
64
+
## Exponential Family Random Graph Models (ERGMs)
64
65
65
66
We need to build a probability function for \includegraphics[width=.05\linewidth]{fig/g1.pdf}...\pause
66
67
@@ -85,7 +86,7 @@ We need to build a probability function for \includegraphics[width=.05\linewidth
\large because of \color[HTML]{af0000}$\GRAPH$\color{black},
115
-
the \color[HTML]{5726e7} \textbf{normalizing constant}\color{black}{} is \linebreak[4] a summation of $2^{n(n-1)}$ terms \includegraphics[width=.05\linewidth]{fig/scared.png}!\normalsize\pause
116
+
the \color[HTML]{5726e7} \textbf{normalizing constant}\color{black}{} is \linebreak[4] a summation of $2^{n(n-1)}$ terms \includegraphics[width=.05\linewidth]{fig/scared.png}!\normalsize
116
117
117
118
-----
118
119
@@ -141,16 +142,20 @@ To solve this, instead of directly computing this function, estimation is done b
141
142
142
143
## Let's get going
143
144
144
-
We will use the famous Monk data from @sampson1969novitiate
145
+
We will use the famous Monk data from @sampson1969novitiate \pause
145
146
146
147
```{r ergm-monks, message=FALSE}
147
148
library(ergm)
148
149
data(samplk, package="ergm")
150
+
```
151
+
\pause
152
+
This is an object of class network
149
153
150
-
# A glimpse into a network object (from the network package loaded with ergm)
* Suppose we want to test wether homophily on \textit{group} (individuals of the same group tend to connect with each other) and transitive triads (the friend of my friend) are driving the structure: \pause
- In the case of small networks (e.g. at most 6 nodes), the calculation of \color[HTML]{5726e7} \textbf{normalizing constant}\color{black}{} becomes computationally feasible.\pause
217
+
218
+
- This allows direct calculation of the likelihood, \textbf{avoiding the need for simulations} and allowing us to obtain Maximum Likelihood Estimates using \textit{standard} optimization techniques.\pause
219
+
220
+
- In addition, most of the time samples of small networks include multiple of them, e.g.: Families, Small teams (like our data), Ego-nets, etc.\pause
221
+
222
+
- This makes pooled ERGM estimates a natural way of modeling the data.\pause
223
+
224
+
- This and more can be found in the [\textbf{ergmito}](https://github.com/muriteams/ergmito) R package \href{https://github.com/muriteams/ergmito}{(\includegraphics[width=.025\linewidth]{fig/github.png}/muriteams/ergmito)}
225
+
226
+
---
227
+
228
+
Sidetrack...
229
+
230
+
\begin{minipage}[c]{1\linewidth}
231
+
\large \textbf{ito, ita}: From the latin -\textit{\=ittus}. suffix in Spanish used to denote small or affection. e.g.:
232
+
233
+
\hspace{.5cm} \textit{¡Qué lindo ese perr\textcolor{USCCardinal}{\textbf{ito}}!} / \textit{What a beautiful little dog!}
234
+
235
+
\hspace{.5cm} \textit{¿Me darías una tac\textcolor{USCCardinal}{\textbf{ita}} de azúcar?} / \textit{Would you give me a small cup of sugar?}
236
+
\normalsize
237
+
\end{minipage}\pause
238
+
239
+
\alert{Special thanks to George Barnett who proposed the name during the 2018 NASN!}
195
240
196
241
## `ergmito` example
197
242
@@ -231,49 +276,59 @@ fivenets[[1]]
231
276
232
277
## `ergmito` example (cont'd)
233
278
234
-
The same as you would do with the `ergm` package:
279
+
The same as you would do with the `ergm` package:\linebreak[4]
0 commit comments