coef_plot function

Plots the coefficients of FERGM and ERGM objects.

Plots the coefficients of FERGM and ERGM objects.

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

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.

Returns

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.

Examples

# 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"))

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/.