Returns the covariance matrix of every regression coefficient of an
ame_als or lame_als fit: the intercept, the
dyadic coefficients and the node-covariate coefficients.
Usage
# S3 method for class 'ame_als'
vcov(object, ...)Value
A covariance matrix with matching row/column names, covering every
coefficient of coef().
Details
Every fit the fast route returns is an empirical-Bayes fit (see
ame_als), and
its covariance is the Laplace covariance: the inverse of the penalised
Fisher information of all the parameters (the coefficients, the actor
effects, the node-covariate coefficients and the latent factors) at the
final weights (for a normal fit the exact information of the Gaussian cell,
whose Laplace approximation is exact for the coefficients and the effects),
with the actor effects' covariance fit$eb$sab and the factor scales
held at their estimates. It propagates the uncertainty of the actor effects
and the factors. The covariance conditional on the factors is
fit$eb$vcov_cond. A fit an earlier release made with a setting
this release no longer has stops with an error of class
lame_als_removed_setting; refit it with ame_als or
lame_als.
A bootstrap attached to the fit (bootstrap = N) takes precedence: its
covariance is that of the replicates, and a coefficient the bootstrap gives
no standard error for (see ame_als_bootstrap) keeps its
analytic variance, with zero covariance with the others
(fit$bootstrap$se_source names it).
See also
ame_als_bootstrap for bootstrap uncertainty.