Skip to contents

Reports which estimation routine produced a fitted object and what uncertainty information, if any, is available. Methods exist for ame_als fits (the fast block coordinate descent estimator) and boot_ame bootstrap objects.

Usage

sampler_describe(object, verbose = TRUE)

# S3 method for class 'ame_als'
sampler_describe(object, verbose = TRUE)

# S3 method for class 'boot_ame'
sampler_describe(object, verbose = TRUE)

# S3 method for class 'ame'
sampler_describe(object, verbose = TRUE)

# S3 method for class 'lame'
sampler_describe(object, verbose = TRUE)

Arguments

object

a fitted object (ame_als or boot_ame).

verbose

logical; if TRUE (default) print the description.

Value

The input object, invisibly.

Examples

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)
sampler_describe(fit)
#> 
#> ── Estimator 
#> Method: iterative block coordinate descent (fast, MCMC-free)
#> Origin: Hoff & Minhas Social Influence Regression estimator (sir::sir_alsfit())
#> Uncertainty available: yes (Laplace standard errors of the empirical-Bayes fit:
#> `vcov()`, `confint()`, `summary()`)
#> Empirical-Bayes estimate (normal family): the posterior means of the actor
#> effects and the latent factors (a Gaussian variational posterior), the
#> coefficients, the variance of the noise and the variance components by
#> empirical Bayes; the two cells of a dyad are a bivariate normal pair with the
#> dyadic correlation rho. For posterior summaries use ame()/lame() (MCMC).