| coef_plot {fergm} | R Documentation |
Plots the coefficients of FERGM and ERGM objects.
Description
This function allows the users to visualize FERGM estimates or to compare the coefficients of ERGMs and FERGMs.
Usage
coef_plot(fergm.fit = NULL, ergm.fit = NULL, custom_var_names = NULL)
Arguments
fergm.fit |
A model object returned by the |
ergm.fit |
A model object returned by the |
custom_var_names |
A vector of custom variable names used in presentation that match the order of the |
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
# 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"))