edge.prob2 {ergMargins} | R Documentation |
Function to compute tie probabilities for each dyad.
Description
Computes tie probabilities for each dyad. Largely a wrapper for edgeprob() in btergm.
Usage
edge.prob2(model,verbose=FALSE)
Arguments
model |
model is the ergm object. |
verbose |
Boolean operator. If set to T, updates user on progress of edge.prob2. May be useful for large networks. |
Details
Computes tie probabilities for each dyad in the ERGM sample space.This function is largely a wrapper for the edgeprob function in btergm, but can be applied to curved ERGMs.
Value
Returns a dataframe where weach row is a dyad and each column is a term in the model, an identification variable for the vertices/dyads, or the estimated probability of observing a tie. See edgeprob() in btergm for more details.
Author(s)
Scott Duxbury, Assistant Professor, University of North Carolina–Chapel Hill, Department of Sociology. original author is Philip Leifeld at University of Essex.
See Also
Examples
library(ergm)
data("faux.dixon.high")
my.ergm<-ergm(faux.dixon.high~edges+
nodeifactor("sex")+
nodeofactor("sex")+
nodematch("sex")+
mutual)
edge.prob2(my.ergm)