edgeprob: Create all predicted tie probabilities using MPLE

edgeprobR Documentation

Create all predicted tie probabilities using MPLE

Description

Create all predicted tie probabilities using MPLE.

Usage

edgeprob(object, verbose = FALSE)

Arguments

object

An ergm, btergm, or mtergm object.

verbose

Print details?

Details

For a given (T)ERGM, return a data frame with all predicted edge probabilities along with the design matrix of the MPLE logit model, based on the estimated coefficients and the design matrix, for all time points, along with i, j, and t variables indicating where the respective dyad is located.

edgeprob is a convenience function that creates a data frame with all dyads in the ERGM or TERGM along with their edge probabilities and their predictor values (i.e., change statistics). This is useful for creating marginal effects plots or contrasting multiple groups of dyads. This function works faster than the interpret function.

Value

The first variable in the resulting data frame contains the edge value (i.e., the dependent variable, which is usually binary). The next variables contain all the predictors from the ERGM or TERGM (i.e., the change statistics). The next five variables contain the indices of the sender (i), the receiver (j), the time step (t), the vertex id of i (i.name), and the vertex id of j (j.name). These five variables serve to identify the dyad. The last variable contains the computed edge probabilities.

See Also

Other interpretation: interpret(), marginalplot()


btergm documentation built on May 29, 2024, 12:09 p.m.