Skip to contents

Sender (a) and receiver (b) additive-effect estimates as a sorted lollipop chart. Mirrors ab_plot, with 95\ from the posterior standard deviations of the effects (fit$a_sd, fit$b_sd) as error bars. If the fit was produced via ame_als(..., bootstrap = N), the bootstrap 95\ instead.

Usage

ab_plot.ame_als(
  fit,
  effect = c("sender", "receiver", "both"),
  top_n = Inf,
  ...
)

Arguments

fit

an ame_als fit.

effect

"sender" (default), "receiver", or "both".

top_n

integer; show only the top / bottom top_n actors by absolute effect (default Inf, show all).

...

reserved.

Value

A ggplot object.

Examples

# \donttest{
set.seed(1)
n <- 12
Y <- matrix(rnorm(n * n), n, n); diag(Y) <- NA
fit <- ame_als(Y, R = 1, family = "normal", verbose = FALSE)
ab_plot(fit, effect = "sender")

# }