Skip to contents

Summarizes a fitted LAME (Longitudinal Additive and Multiplicative Effects) model, including parameter estimates, standard errors, credible intervals, and model diagnostics.

Usage

# S3 method for class 'lame'
summary(object, ...)

Arguments

object

an object of class "lame", typically the result of fitting a longitudinal AME model using the lame function

...

additional parameters (currently not used)

Value

A list of class "summary.lame" containing:

call

The original function call

beta

Matrix of regression coefficient estimates and statistics; z_value and p_value are NA for a coefficient path, which the print shows apart from the other coefficients, without them

beta_path

for a fit with coefficient paths, a named logical vector marking them (NULL otherwise)

beta_dynamic_per_t, beta_dynamic_per_t_sd, beta_dynamic_per_t_lower, beta_dynamic_per_t_upper

for a fit with coefficient paths, the coefficient-by-period posterior means, sds and 95% interval bounds

variance

Matrix of variance component estimates. On a directed binary panel of two periods or more with fewer than 1.2 events per actor-period the va and vb rows are NA: in simulated panels their 95 percent intervals covered the generating variances in 0.28 to 0.91 of the panels below that rate. The draws stay in fit$VC. Under a supplied effects prior the rows are reported under it.

ab_var_unidentified

TRUE when those rows are NA

ab_var_unidentified_reason

"sparse" when the event rate put them there (NA when they are reported)

ab_data_reason

the same reason read off the data alone: it differs from ab_var_unidentified_reason when the effects prior was supplied, in which case the rows are reported under that prior

ab_coef_reason

"sparse" when the intercept is NA (an event rate below 0.6, or 1.6 with a multiplicative term), NA otherwise

prior_supplied

TRUE when the fit's prior carried Sab0, eta0 or etaab; the print method then names the prior the variances are reported under

events_per_actor_period

events per actor per period (NULL on families without an event rate), the rate the sparse-panel rules read

events_per_actor

events per actor over the panel (NULL on families without an event rate and on fits saved before it was recorded)

persistence_prior_check

for dynamic fits, a data frame with one row per reported persistence (rho_uv, rho_ab): the posterior standard deviation post_sd, the standard deviation of the truncated prior it started from prior_sd, their ratio sd_ratio, and weak, TRUE when the ratio is above 0.6 (NULL when no persistence is reported)

mu_beta

for fits with AR(1) coefficient paths, a matrix with one row per such coefficient: the posterior mean, standard deviation and 95 percent interval of its long-run mean (NULL otherwise)

n.periods

Number of time periods in the longitudinal data

Details

The summary includes:

Regression coefficients

Posterior means, posterior standard deviations, z-values, normal-tail p-values, and 95% credible intervals for dyadic, sender, and receiver covariates. The z-value is the posterior mean divided by the posterior SD, and the p-value is the two-sided normal tail probability of that z-value: a posterior summary, not a frequentist test. The credible intervals are posterior quantiles of the draws, and the full posterior is in the BETA matrix. A coefficient that follows a path over the periods (dynamic_beta, or the intercept under dynamic_ab) has no z-value or p-value: its row gives the posterior of its mean level over the periods, and the print method adds its posterior mean, sd and 95% interval in each period, as coef() and confint() report it.

Variance components

Estimates and standard errors for:

va

Variance of additive sender/row effects

cab

Covariance between sender and receiver effects

vb

Variance of additive receiver/column effects

rho

Dyadic correlation (reciprocity)

ve

Residual variance

The print leaves out a row the model does not have: ve of a binary or ordinal model (fixed at 1), rho of a fit with dcor = FALSE, cab and rho of a bipartite model.

Rhat, Threshold and ESS

A fit of two or more chains adds the columns Rhat, Threshold and ESS to both tables, as summary.ame does: the split rank-normalised R-hat and the threshold the between-chain gate held the quantity to (from fit$rhat; a coefficient monitored per period shows the period with the largest R-hat), and the effective sample size of the pooled draws, the total over all chains (the fewest over the periods for a coefficient monitored per period; fit$rhat$ess counts effective draws per split chain instead). The print adds the gate's verdict: agreement on every monitored quantity, or the quantities on which the chains disagree or hold too few effective draws to be compared.

Dynamic coefficients per period

Only printed when the fit was produced with dynamic_beta on at least one coefficient. The table has one row per coefficient with columns:

Mean

average of the per-period posterior means across t

Min, Max

smallest and largest per-period posterior mean

Drift

Max - Min: the absolute range of the per-period posterior means, in coefficient units

Drift_pct

100 * Drift / |Mean|, the drift as a percentage of the average level. Reported as NA when the time-average is near zero (within 5\ range), because a trajectory that crosses zero makes the percentage explode; read Drift in that case

Dynamic

"Y" if the coefficient was flagged as dynamic, "N" if it was held static

The block also prints the per-block AR(1) hyperparameters (rho_beta = ...) and the long-run mean of each AR(1) coefficient path (mu_beta = ...), the level its path and its forecasts revert to. For per-period credible intervals use confint.lame.

For dynamic fits the summary reports the posterior means of the persistence parameters rho_uv (latent positions) and rho_ab (additive effects). These are learned from period-to-period transitions, so on short panels, and on sparse bipartite panels where each period's positions are themselves uncertain, the data inform them weakly. The summary measures how weakly. For each reported persistence it divides the posterior standard deviation by the standard deviation of the prior the fit used (the normal prior of prior$rho_uv_mean and prior$rho_uv_sd, or of prior$rho_ab_mean and prior$rho_ab_sd, truncated to the support of the sampler, \(|\rho| < 0.99\), and for rho_uv folded onto \(|\rho|\), the gauge of its stored draws; see prior_summary()) and returns the ratio in persistence_prior_check. A ratio near one says that the posterior is as wide as the prior, so the data add little to that persistence. When the ratio is above 0.6 the printed summary states it, for example rho_uv: posterior sd 0.212 is 0.92 of the prior sd 0.230: the data barely inform it. The cutoff, a posterior sd above 0.6 of the prior sd, is the one rho_beta_prior_check applies to the coefficient persistences.

Author

Cassy Dorff, Shahryar Minhas, Tosin Salau