coef_plot: Plots the coefficients of FERGM and ERGM objects.

Description Usage Arguments Value References Examples

View source: R/coef_plot.R

Description

This function allows the users to visualize FERGM estimates or to compare the coefficients of ERGMs and FERGMs.

Usage

1
coef_plot(fergm.fit = NULL, ergm.fit = NULL, custom_var_names = NULL)

Arguments

fergm.fit

A model object returned by the fergm function. Must be specified.

ergm.fit

A model object returned by the ergm function. May be specified when comparing ERGM and FERGM coefficients.

custom_var_names

A vector of custom variable names used in presentation that match the order of the form object passed to fergm. If not provided, defaults to names inherited by fergm.fit.

Value

This function produces a coefficient rope-ladder plot containing 95% confidence intervals using ggplot2. The function either takes fergm model output or fergm and ergm model output. The former is effective in summarizing fergm model output while the latter is effective in comparing FERGM and ERGM estimates.

References

Box-Steffensmeier, Janet M., Dino P. Christenson, and Jason W. Morgan. 2018. “Modeling Unobserved Heterogeneity in Social Networks with the Frailty Exponential Random Graph Model." Political Analysis. (26)1:3-19.references Box-Steffensmeier, Janet M., Dino P. Christenson, and Jason W. Morgan. 2017. “Modeling Unobserved Heterogeneity in Social Networks with the Frailty Exponential Random Graph Model." Political Analysis.

Stan Development Team (2016). RStan: the R interface to Stan. R package version 2.14.1. http://mc-stan.org/.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# load example data
data("ergm.fit")
data("fergm.fit")
data("mesa")
# Compare substantive implications via coef plot, these are with 95% credible intervals
coef_plot(fergm.fit = fergm.fit, ergm.fit = ergm.fit,
custom_var_names =  c("Edges", "Sex Homophily", "Grade Homophily",
"Race Homophily", "GWESP", "Alternating K-Stars"))
coef_plot(fergm.fit = fergm.fit,
custom_var_names =  c("Edges", "Sex Homophily", "Grade Homophily",
"Race Homophily", "GWESP", "Alternating K-Stars"))

fergm documentation built on May 2, 2019, 2:37 a.m.